Author: scabanovich
Date: 2008-03-11 12:50:57 -0400 (Tue, 11 Mar 2008)
New Revision: 6854
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardUtils.java
Log:
JBIDE-1322
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties 2008-03-11
16:46:38 UTC (rev 6853)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties 2008-03-11
16:50:57 UTC (rev 6854)
@@ -146,7 +146,7 @@
VALIDATOR_FACTORY_SELECTED_PROJECT=Selected project '
VALIDATOR_FACTORY_SELECTED_PRJ_IS_CLOSED=Selected project ''{0}'' is
closed
VALIDATOR_FACTORY_PRJ_NOT_SELECTED=Project is not selected
-VALIDATOR_FACTORY_IS_NOT_A_SEAM_WEB_PROJECT=' is not a Seam Web Project
+VALIDATOR_FACTORY_IS_NOT_A_SEAM_WEB_PROJECT=' is not a Seam Project
VALIDATOR_FACTORY_CONNECTION_PROFILE_IS_NOT_SELECTED=Connection profile is not selected
VALIDATOR_FACTORY_DRIVER_CLASS_PROPERTY_IS_EMPTY_FOR_SELECTED=Driver Class property is
empty for selected '
VALIDATOR_FACTORY_SEAM_RT_SOURCE_TEMPLATES_DIR_DOES_NOT_EXIST=Seam Runtime
''{0}'' source templates directory doesn't exist for selected Seam Web
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 2008-03-11
16:46:38 UTC (rev 6853)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardUtils.java 2008-03-11
16:50:57 UTC (rev 6854)
@@ -76,7 +76,11 @@
}
public static String getRootSeamProjectName(ISelection sel) {
- IProject project = getRootSeamProject(getInitialProject(sel));
+ IProject initial = getInitialProject(sel);
+ IProject project = getRootSeamProject(initial);
+ if(project == null) {
+ project = initial;
+ }
return project == null ? "" : project.getName();
}
Show replies by date