Bug 183398 - Allow to override watch customize
Allow to override watch customize
Status: NEW
Product: debugger
Classification: Unclassified
Component: Code
6.x
All All
: P2 (vote)
: TBD
Assigned To: issues@debugger
issues@debugger
:
Depends on:
Blocks:
  Show dependency treegraph
 
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
:


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...


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo