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 151736 - Project popup customization
Summary: Project popup customization
Status: VERIFIED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: Build System (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords:
Depends on:
Blocks: 162137
  Show dependency tree
 
Reported: 2008-10-29 15:42 UTC by Radko Najman
Modified: 2009-04-08 08:45 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Radko Najman 2008-10-29 15:42:30 UTC
It would be nice to have a possibility to customize the list of project popup actions (e.g. by layer declaration) - Java
ME Toolbar based on NetBeans Mobility needs to modify the list of actions.
Comment 1 _ tboudreau 2008-11-12 16:32:13 UTC
Use case:  remove configurations from menu.  Simple enough to make the action provider look in some folder for registered actions.
Comment 2 _ tboudreau 2008-11-18 00:22:07 UTC
You can already add actions the same way as J2SEProject - put things in Projects/Actions in SFS.

The example I wrote down below while we were on the phone is "remove configurations from menu" - but there is nothing
related to configurations in the menu.

Do you really need to remove things, or just add them (in which case this issue is already solved)?
Comment 3 Radko Najman 2008-12-01 10:38:08 UTC
Yes, we need also to remove menu items, e.g. Batch Build, Batch Clean & Build, Batch Clean, Batch Deploy which are
related to project configurations. 
Comment 4 _ tboudreau 2008-12-02 17:33:18 UTC
Moving target to M2 since we are already in the stabilization phase of M1, but I should be able to attach a patch here soon
Comment 5 _ tboudreau 2008-12-02 20:39:55 UTC
On second thought....

Mobility project actions are now all declarative, registered in Projects/org-netbeans-modules-mobility-project/Actions/Root

Probably this will cause some regression of popup menu performance, but it is now customizable.

Fixed in changeset 26bd6b67abf4.

Radko, do you need to customize the popups of any of the subnodes of the project, or just the top-level project node?
Comment 6 Radko Najman 2008-12-04 10:46:01 UTC
Most important for us is to customize popup of top-level node. I'll check if we need something to customize on subnodes
but I don't think so now.
Comment 7 _ tboudreau 2008-12-04 16:00:29 UTC
Okay.  I left the door open for doing this if we need it later.  I.e. The root node's actions are in 
Projects/org-netbeans-modules-mobility-project/Actions/Root
but we can always add support for
Projects/org-netbeans-modules-mobility-project/Actions/Resources
Projects/org-netbeans-modules-mobility-project/Actions/Configurations
Projects/org-netbeans-modules-mobility-project/Actions/Sources
if we need to.


Comment 8 Radko Najman 2008-12-09 10:04:22 UTC
Verified.