Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-424

Blank page in NewSessionBeanWizard when nothing is selected

    XMLWordPrintable

Details

    • Patch
    • Resolution: Done
    • Major
    • None
    • 2.0.0.Beta2
    • ejb3
    • None

    Description

      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.

          1. 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);

      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());

      Attachments

        Activity

          People

            mculpepper_jira Marshall Marshall (Inactive)
            manderse@redhat.com Max Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: