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 30229

Summary: Nodes passed incorrectly (twice?) into NodeAction.enable
Product: platform Reporter: _ rkubacki <rkubacki>
Component: ActionsAssignee: Jaroslav Tulach <jtulach>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 30240, 30246    

Description _ rkubacki 2003-01-20 17:57:49 UTC
build from trunk from Mon Jan 20 18:49:58 CET 2003

after fix of nonworking context menu there is
another big problem. It seems that there are more
nodes passed into enable() method of node actions
(they are probably duplicated). Thus all actions
like OpenLocalExplorer are disabled because their
check 
if (activatedNodes.length == 1) fails.

This has huge impact of whole IDE functionality
Comment 1 Peter Zavadsky 2003-01-21 07:45:20 UTC
Please provide the test case, I don't see the described behaviour.

More over the nodes which are passed to the action are retrieved
following way.
There got activated nodes from the component, e.g explorer (via
TopComponent.getActivatedNodes), and then from those nodes are
collected their lookups, which should provide the nodes (or original
if the node is filter one). 
The problem could be anywhere described above:
Therefore please provide which TopComponent is in play and which
nodes. Thanks.

Also which fix do have in mind?
Comment 2 Jaroslav Tulach 2003-01-21 12:19:50 UTC
My fix. I'll try to reproduce.
Comment 3 Jaroslav Tulach 2003-01-21 13:37:47 UTC
DefaultTopComponentLookup 1.6
Comment 4 Marian Mirilovic 2003-01-29 13:25:04 UTC
it works fine in [nb_dev](20030129)