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 20894

Summary: Cannot remove Compile/Build from RootFolderNode
Product: platform Reporter: Petr Hrebejk <phrebejk>
Component: -- Other --Assignee: Jesse Glick <jglick>
Status: RESOLVED FIXED    
Severity: blocker CC: jglick, jtulach, tonybeau
Priority: P2    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 20895    
Bug Blocks: 17815    

Description Petr Hrebejk 2002-02-26 16:30:35 UTC
As the cration of popup menu of RootFolderNode is hardcoded it is impossible
to remove the actions using xml layers (branding).

It is desirable to read the actions from xml layer.
Comment 1 Marek Grummich 2002-07-22 08:30:42 UTC
Target milestone was changed from '3.4' to TBD.
Comment 2 Marek Grummich 2002-07-22 08:34:46 UTC
Target milestone was changed from '3.4' to TBD.
Comment 3 Jesse Glick 2002-07-23 01:08:56 UTC
As Tony asked on dev@openide, by the same token it is hard to *add* to
this context menu. Depends on Looks for configurability, I guess.

Probably RootFolderNode should be made a FilterNode and override the
bare minimum. For starters, the getActions method should call
super.getActions and merge in/out things it cares about. This would
mean at least that if you took the actions off regular FolderNode's
using the DataLoader.setActions hack (see issue #20895), at least it
would work on root folders too - currently it is quite impossible.
Comment 4 David Strupl 2002-07-23 15:13:48 UTC
Part of the new datasystem/actions activities --> target milestone 4.0.
Comment 5 Jesse Glick 2002-10-14 21:33:25 UTC
Issue #19443 should solve this at some point.
Comment 6 Jesse Glick 2002-10-18 22:12:15 UTC
Mine too.
Comment 7 Jesse Glick 2002-11-02 21:32:42 UTC
See issue #19443.
Comment 8 Jesse Glick 2002-11-14 23:17:29 UTC
Enough of issue #19443 implemented for this purpose.
Comment 9 Jesse Glick 2002-11-15 00:32:00 UTC
I will anyway make RootFolderNode get its actions from the regular
folder list and just add/remove what it needs, rather than hardcoding
the full list.