Author: akazakov
Date: 2009-03-24 15:43:18 -0400 (Tue, 24 Mar 2009)
New Revision: 14315
Modified:
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamBaseWizardPage.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4077 - Fixed
Modified:
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamBaseWizardPage.java
===================================================================
---
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamBaseWizardPage.java 2009-03-24
19:41:51 UTC (rev 14314)
+++
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamBaseWizardPage.java 2009-03-24
19:43:18 UTC (rev 14315)
@@ -442,9 +442,14 @@
* @return
*/
public IProject getSelectedProject() {
- IResource project = ResourcesPlugin.getWorkspace().getRoot().findMember(
- editorRegistry.get(IParameter.SEAM_PROJECT_NAME).getValueAsString());
- return (IProject)project;
+ String projectName =
editorRegistry.get(IParameter.SEAM_PROJECT_NAME).getValueAsString();
+ if(projectName!=null && projectName.trim().length()>0) {
+ IResource project = ResourcesPlugin.getWorkspace().getRoot().findMember(projectName);
+ if(project!=null && project instanceof IProject) {
+ return (IProject)project;
+ }
+ }
+ return null;
}
public boolean isWar() {