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 95866 - AbstractNode has Properties action by default
Summary: AbstractNode has Properties action by default
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: REGRESSION
Depends on:
Blocks: 76102
  Show dependency tree
 
Reported: 2007-02-17 09:04 UTC by Sherold Dev
Modified: 2008-12-22 11:51 UTC (History)
2 users (show)

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 Sherold Dev 2007-02-17 09:04:12 UTC
If you create a node by extending AbstractNode and if you do not override the
getActions method, the created node will contain the Properties action in its
context menu by default, which will display an empty property sheet dialog.

This is a regression because in previous releases the created node would not had
any context menu. If this is an enhancement and not a bug please consider not
displaying the Properties action if the node does not have any properties.
Comment 1 Petr Nejedly 2007-03-26 09:21:29 UTC
It used to be this way as long as I remember. Plain testing nodes always had
disabled "Properties" action in their popups.
Yardo, please correct me if I'm wrong.
Comment 2 Jaroslav Tulach 2007-03-26 13:52:12 UTC
My feeling is that PropertiesAction used to be there since 1997, at the 
beginning it used to be always enabled, later then it was disabled when there 
were no properties in the node, but this has been found a performance problem 
and as such it is now always enabled - e.g. exactly where it was in 1997.
Comment 3 Sherold Dev 2007-03-27 08:57:07 UTC
OK, thank you for the clarification.