-
Patch
-
Resolution: Done
-
Major
-
None
-
2.0.0.Beta2
-
None
Found this during the demo at JBW.
When nothing is selected one gets a blank wizard page. Here is the patch i made against JBW_BERLIN tag.
-
-
- Eclipse Workspace Patch 1.0
#P org.jboss.ide.eclipse.ejb3.wizards.ui
Index: src/main/org/jboss/ide/eclipse/ejb3/ui/wizards/pages/NewSessionBeanWizardPage.java
===================================================================
RCS file: /cvsroot/jboss/jbosside/ejb3/plugins/org.jboss.ide.eclipse.ejb3.wizards.ui/src/main/org/jboss/ide/eclipse/ejb3/ui/wizards/pages/NewSessionBeanWizardPage.java,v
retrieving revision 1.2
diff -u -r1.2 NewSessionBeanWizardPage.java
- src/main/org/jboss/ide/eclipse/ejb3/ui/wizards/pages/NewSessionBeanWizardPage.java 6 Nov 2006 17:18:38 -0000 1.2
+++ src/main/org/jboss/ide/eclipse/ejb3/ui/wizards/pages/NewSessionBeanWizardPage.java 29 Nov 2006 10:40:42 -0000
@@ -173,7 +173,7 @@
setControl(composite);
- Eclipse Workspace Patch 1.0
-
IJavaElement element = getInitialJavaElement(selection);
- if (element.getElementType() == IJavaElement.PACKAGE_FRAGMENT)
+ if (element!=null && element.getElementType() == IJavaElement.PACKAGE_FRAGMENT)
// || element.getElementType() == IJavaElement.PACKAGE_FRAGMENT_ROOT)
{
beanPackageName.setText(element.getElementName());