This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 54781 - Contextual menu of individual bean nodes needs adjusting
Summary: Contextual menu of individual bean nodes needs adjusting
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: jrojcek
URL: http://j2ee.netbeans.org/nonav/docs/e...
Keywords: SIMPLEFIX, UI
Depends on:
Blocks:
 
Reported: 2005-02-09 19:28 UTC by jrojcek
Modified: 2006-07-31 14:06 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jrojcek 2005-02-09 19:28:02 UTC
* only methods that can be added to a bean should show up in 
the contextual menu
* there shouldn't be "Add" word in the menu item label. It should 
say just "Business Method..." and it should have ellipses.

The spec contains correct contextual menu.
Comment 2 John Jullion-ceccarelli 2005-03-10 10:25:48 UTC
Please use the UI keyword for all bugs that affect the UI. viliam, do you know
when this fix will be integrated and what resource bundles it will affect?
Comment 3 Viliam Sivaninec 2005-03-10 12:59:08 UTC
following resource bundle will be affected:
/cvsj2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/logicalview/ejb/action/Bundle.properties
Comment 4 Viliam Sivaninec 2005-03-31 17:47:33 UTC
Since the node contextual menus have the correct add method actions enabled, am
I correct to assume that the disabled add actions should not appear in the menu?

Should this behavior be replicated in the editor contextual menu? 
Comment 5 Viliam Sivaninec 2005-04-01 14:49:57 UTC
Fixed.

Checking in AbstractAddMethodAction.java;
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/logicalview/ejb/action/AbstractAddMethodAction.java,v
 <--  AbstractAddMethodAction.java
new revision: 1.11; previous revision: 1.10
done
Checking in AddActionGroup.java;
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/logicalview/ejb/action/AddActionGroup.java,v
 <--  AddActionGroup.java
new revision: 1.8; previous revision: 1.7
done
Checking in AddBusinessMethodAction.java;
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/logicalview/ejb/action/AddBusinessMethodAction.java,v
 <--  AddBusinessMethodAction.java
new revision: 1.8; previous revision: 1.7
done
Checking in AddCreateMethodAction.java;
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/logicalview/ejb/action/AddCreateMethodAction.java,v
 <--  AddCreateMethodAction.java
new revision: 1.6; previous revision: 1.5
done
Checking in AddFinderMethodAction.java;
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/logicalview/ejb/action/AddFinderMethodAction.java,v
 <--  AddFinderMethodAction.java
new revision: 1.6; previous revision: 1.5
done
Checking in AddHomeMethodAction.java;
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/logicalview/ejb/action/AddHomeMethodAction.java,v
 <--  AddHomeMethodAction.java
new revision: 1.5; previous revision: 1.4
done
Checking in AddSelectMethodAction.java;
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/logicalview/ejb/action/AddSelectMethodAction.java,v
 <--  AddSelectMethodAction.java
new revision: 1.6; previous revision: 1.5
done
Checking in Bundle.properties;
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/logicalview/ejb/action/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.17; previous revision: 1.16
done
Comment 6 jrojcek 2005-04-04 17:33:52 UTC
Sorry for late response, I was on vacation. I assume that those menus (node's menu and in the editor) 
should contain the same items. Jirka, is that right?
Comment 7 Jiri Kopsa 2005-04-04 17:52:25 UTC
In general:
* the context menu of a node and in the source editor should be the same
* some actions should be removed statically (based on the bean type)
* some actions should be disabled dynamically (e.g. create method of a session
bean - enabled if the method is not present)

I'll update the UI spec; reopening this issue and reassigning to me. 
Comment 8 Petr Blaha 2006-03-13 13:48:17 UTC
TM 5.0 -> TBD
Comment 9 Petr Jiricka 2006-07-31 14:06:51 UTC
This appears to be fixed, resolving as FIXED.