Author: scabanovich
Date: 2007-11-01 08:35:14 -0400 (Thu, 01 Nov 2007)
New Revision: 4617
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/ImportWebWarWizardPage.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/NewWebProjectWizardPage.java
Log:
JBIDE-1236
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/ImportWebWarWizardPage.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/ImportWebWarWizardPage.java 2007-11-01
12:34:48 UTC (rev 4616)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/ImportWebWarWizardPage.java 2007-11-01
12:35:14 UTC (rev 4617)
@@ -135,6 +135,7 @@
lock = true;
try {
context.setProjectName(nameLocationAdapter.getStringValue(true));
+ appRegister.loadApplicationName();
if(!isDefaultPath()) return;
context.setCustomerLocation(getDefaultLocation());
projectLocationAdapter.setValue(getDefaultLocation());
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/NewWebProjectWizardPage.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/NewWebProjectWizardPage.java 2007-11-01
12:34:48 UTC (rev 4616)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/NewWebProjectWizardPage.java 2007-11-01
12:35:14 UTC (rev 4617)
@@ -51,6 +51,7 @@
import org.jboss.tools.common.model.ui.ModelUIPlugin;
import org.jboss.tools.common.model.ui.widgets.DefaultSettings;
import org.jboss.tools.common.model.ui.widgets.IWidgetSettings;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.jst.web.project.helpers.IWebProjectTemplate;
import org.jboss.tools.jst.web.project.helpers.NewWebProjectContext;
import org.jboss.tools.jst.web.project.version.ProjectVersion;
@@ -298,14 +299,7 @@
private boolean projectExistsIgnoreCase() {
String name = getProjectName();
- if(name == null || name.length() == 0) return false;
- IProject[] ps = ModelPlugin.getWorkspace().getRoot().getProjects();
- for (int i = 0; i < ps.length; i++) {
- if(ps[i].getName().equalsIgnoreCase(name)) {
- return true;
- }
- }
- return false;
+ return EclipseResourceUtil.projectExistsIgnoreCase(name);
}
private IProject overlaps(String projectLocation) {
Show replies by date