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.
Some problems I noticed w/ ToolsAction & using plain Action's w/ ContextAwareAction. 1. The context submenu uses CAA, but skips plain Action's which are not Presenter.Popup's. Probably it should create a default menu item for them, as all other menu code does. Patch included. 2. The inline menu in the main Tools menu appears to not use CAA correctly. If you have a SystemAction in the ToolsAction list which is a CAA, the menu item seems to be from the SystemAction, when you really you want it to be from the current global context. (Or maybe it is that it is the context-aware action but from the context in effect when the menu was created during startup, rather than from when the menu was last posted. For that, dep on issue #35827.)
Created attachment 12269 [details] Suggested patch to make it unnecessary to impl Presenter.Popup on context-aware instances in ToolsAction popup submenu
Applied the patch into [trunk] Checking in openide/src/org/openide/actions/ToolsAction.java; /cvs/openide/src/org/openide/actions/ToolsAction.java,v <-- ToolsAction.java new revision: 1.47; previous revision: 1.46 done Processing log script arguments... Mailing the commit message to cvs@openide.netbeans.org (from pzavadsky@netbeans.org)
closed