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.
I try to place my own action between "Build" and "Clean" in the local menu of a web project in the projects window like this: <folder name="Projects"> <folder name="Actions"> <file name="org-netbeans-modules-gwt4nb-HostedModeAction.shadow"> <attr name="originalFile" stringvalue="Actions/Build/org-netbeans-modules-gwt4nb-HostedModeAction.instance"/> <attr name="position" intvalue="0"/> </file> </folder> </folder> but this only places the action at the bottom of the menu
I don't think you can place your actions between build and clean.
Projects/Actions is for "extra" actions which are shown in a section at the bottom of any cooperating project type. Currently most project types do not define their root node context menus in layers; if they did, you could register actions in particular places in the context menus of particular project types. See e.g. bug #182488 for j2seproject's.
could you please tell why you "won't fix" this?
Because it can only be done for particular project types individually (there is no missing infrastructure that I know of).
OK. Let this issue be the one about web projects.
Needs some prep work done in bug #182488. David says he can do it for EE project types in trunk after that branch is merged. Tech notes about things in web.project's context menu which do not exist in java.j2seproject: if (provider != null && provider.hasVerifierSupport()) {...} - need to always include action in layer but conditionally disable (or hide, using new HIDE_WHEN_DISABLED property) Utilities.actionsForPath("Projects/Rest_Actions_holder") - inline contents of that folder (it could then be deleted) BrokenServerAction and BrokenDatasourceAction - need refactoring similar to BrokenLinksAction so they are self-contained, i.e. LVP impl does not hold references to them but rather keeps its own state and broadcasts changes to actions; then can create factories (placeholder ContextAwareAction) for them in layer WebProjectConstants.COMMAND_REDEPLOY - need a new Actions/Project/*.instance defined I guess in api.web.webmodule
Created attachment 96936 [details] web project patch Jesse, I changed web.project similarly to your changes in java proj. I will change other EE project types before pushing these changes.
Looks good, though it is unfortunate that broken reference actions are so messy.
Fixed in all EE project types - I refactored Web Project logical provider into an abstract one which is used from all EE project types - there were almost no differences. Next step would be to refactor org.netbeans.modules.j2ee.common.project.ui.AbstractLogicalViewProvider to java.api.common and share it with J2SE project type. TBD. 03c6611c051b
-