[jbosstools-issues] [JBoss JIRA] Closed: (JBIDE-424) Blank page in NewSessionBeanWizard when nothing is selected

Marshall Culpepper (JIRA) jira-events at lists.jboss.org
Thu Aug 23 15:05:32 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBIDE-424?page=all ]

Marshall Culpepper closed JBIDE-424.
------------------------------------

    Resolution: Done

ejb3 plugin is deprecated

> Blank page in NewSessionBeanWizard when nothing is selected
> -----------------------------------------------------------
>
>                 Key: JBIDE-424
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-424
>             Project: JBoss Tools
>          Issue Type: Patch
>          Components: ejb3
>    Affects Versions: 2.0.0.Beta2
>            Reporter: Max Andersen
>         Assigned To: Marshall Culpepper
>
> 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);
>  
>        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());

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list