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 183398 - Allow to override watch customize
Summary: Allow to override watch customize
Status: NEW
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-02 12:52 UTC by Egor Ushakov
Modified: 2010-04-08 00:20 UTC (History)
0 users

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 Egor Ushakov 2010-04-02 12:52:24 UTC
Now in CND to override customize watch acton for watch node we need to have our own WatchesActionsProvider with all actions (New, Delete, delete all etc.) copy-pasted from core debugger UI. This also requires to have a copy of WatchPanel class. That would be great to have ability to somehow override customize action only.
Comment 1 Martin Entlicher 2010-04-02 14:14:00 UTC
Well, you can implement NodeActionsProviderFilter. original.getActions() will give you the list of existing actions, which you can override.
Is this sufficient?
The WatchPanel can mostly be replaced by API introduced in issue #181523.
Comment 2 Egor Ushakov 2010-04-05 09:39:09 UTC
How can I find core customize action in the original.getActions() list?
Comment 3 Martin Entlicher 2010-04-08 00:20:32 UTC
Well, Customize action has no special property to recognize it. But I guess that it will always be the last action in the list. Thus when you're not on a root node, just replace the last action.
I know that this is not 100% reliable, but I do not think this will change in the future...