Author: akazakov
Date: 2009-01-21 12:31:58 -0500 (Wed, 21 Jan 2009)
New Revision: 13168
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardUtils.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3602 Fixed
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java 2009-01-21
17:01:19 UTC (rev 13167)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePage.java 2009-01-21
17:31:58 UTC (rev 13168)
@@ -321,6 +321,9 @@
private IProject getMainProjectFromField() {
String name = getValue(IParameter.SEAM_PROJECT_NAME).trim();
+ if(name.length()==0) {
+ return null;
+ }
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
if(project!=null && project.exists()) {
return project;
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardUtils.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardUtils.java 2009-01-21
17:01:19 UTC (rev 13167)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardUtils.java 2009-01-21
17:31:58 UTC (rev 13168)
@@ -71,8 +71,8 @@
String parentProjectName = seamProject.getParentProjectName();
IProject targetProject = null;
- if (parentProjectName == null) {
- targetProject = project;
+ if (parentProjectName == null || parentProjectName.trim().length()==0) {
+ targetProject = project;
} else {
targetProject =
ResourcesPlugin.getWorkspace().getRoot().getProject(parentProjectName);
}