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 - Nodes passed incorrectly (twice?) into NodeAction.enable
Summary: Nodes passed incorrectly (twice?) into NodeAction.enable
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks: 30240 30246
  Show dependency tree
 
Reported: 2003-01-20 17:57 UTC by _ rkubacki
Modified: 2008-12-22 15:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)