Author: scabanovich
Date: 2007-07-23 09:09:01 -0400 (Mon, 23 Jul 2007)
New Revision: 2602
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/web.meta
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/helpers/NewWebProjectHelper.java
Log:
Obsolete *.pex extension usage removed
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/web.meta
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/web.meta 2007-07-23 13:08:16
UTC (rev 2601)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/web.meta 2007-07-23 13:09:01
UTC (rev 2602)
@@ -1635,23 +1635,6 @@
HandlerClassName="org.jboss.tools.jst.web.project.handlers.CreateWebPrjHandler"
ICON="main.projects.new" SAVE_REQUIRED="yes"
displayName="Create New Project..." kind="action"
name="CreateStrutsProject"/>
- <XActionItem HIDE="always"
-
HandlerClassName="org.jboss.tools.struts.webprj.model.handlers.ImportWebPrjHandler"
- ICON="main.projects.item"
-
PROPERTIES="support=org.jboss.tools.struts.webprj.model.handlers.ImportWebPrjSupport"
- SAVE_REQUIRED="yes" displayName="Adopt Existing Project..."
- kind="action" name="ImportStrutsProject">
- <EntityData EntityName="WebPrjCreateStepName">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="location"/>
- </EntityData>
- <EntityData EntityName="WebPrjCreateStepDirs">
- <AttributeData AttributeName="webroot"/>
- <AttributeData AttributeName="classes" Mandatory="no"/>
- <AttributeData AttributeName="lib" Mandatory="no"/>
- <AttributeData AttributeName="src" Mandatory="no"/>
- </EntityData>
- </XActionItem>
<XActionItem HandlerClassName="%SpecialWizard%"
ICON="action.empty"
PROPERTIES="support=org.jboss.tools.struts.webprj.model.helpers.sync.SyncProjectSupport"
displayName="Modules Configuration" kind="action"
name="SynchronizeModules"/>
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/helpers/NewWebProjectHelper.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/helpers/NewWebProjectHelper.java 2007-07-23
13:08:16 UTC (rev 2601)
+++
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/helpers/NewWebProjectHelper.java 2007-07-23
13:09:01 UTC (rev 2602)
@@ -124,27 +124,6 @@
}
}
- public static String getWorkspace(File folder) {
- File[] files = folder.listFiles(new FileFilter() {
- public boolean accept(File file) {
- String name = file.getName().toLowerCase();
- return file.isFile() && name.endsWith(".pex");
- }
- });
- return (files != null && files.length > 0) ?
files[0].getAbsolutePath() : null;
- }
-
- public static void removeWorkspace(File folder) {
- File[] files = folder.listFiles(new FileFilter() {
- public boolean accept(File file) {
- String name = file.getName().toLowerCase();
- return file.isFile() &&
- (name.endsWith(".pex"));
- }
- });
- if(files != null) for (int i = 0; i < files.length; i++) files[i].delete();
- }
-
public static Map<String,String> getTemplates(String version, String templ) {
Map<String,String> map = new HashMap<String,String>();
File dir = new File(templ, "struts/"+version);
Show replies by date