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.
I think a better API is required here. I implemented Enable and Customize in the glyph gutter's Breakpoints menu and now have 3 Enabled/Customized labels (one for JPDA, one for Ruby, and one for GDB). I've rename gdb's to "GDB Breakpoint Enabled" and "Customise GDB Breakpoint" but from a UI point-of-view there is no reason why 3 sets should be displayed. Only 1 debugger is going to manage the breakpoint!
Right, we need to assure somehow that the Enable and Customize actions are added only to the appropriate breakpoints.
The bad thing is, that the actions folder 'BreakpointActions' is defined in spi.debugger.ui module, but the actions themselves come from debugger.jpda.ui module. As a workaround you may create your own xml for breakpoint definitions and your own actions folder. But a better solution would be to create some simple APIs which would allow us to move the Enabled and Customize actions into spi.debugger.ui module and thus have them automatically for all other debuggers that use breakpoint types from spi.debugger.ui.
For the APIs we need to have the access to the current Annotation object from the action. See issue #128479.
We also need to have a class that represent the Annotation from which we can retrieve the Breakpoint. This is necessary for Enable and Customize actions, which can be moved to spi.debugger.ui module so that they can work for all kinds of breakpoints. I'm going to attach a patch with a new BreakpointAnnotation class...
Created attachment 58790 [details] The API change for the review.
Please review this simple API change - addition of BreakpointAnnotation class.
Created attachment 58791 [details] All changes associated with this. Moving the Enable and Customize actions into spi.debugger.ui module.
I'll commit this API change - BreakpointAnnotation class - tomorrow evening CET so that QE has enough time to test this change.
The API change is in: http://hg.netbeans.org/main/rev/1618fceca432 The shared actions and their JPDA implementation are there as well: http://hg.netbeans.org/main/rev/bc64b96ca6e1 Please verify that Enable/Customize actions work fine.
Also, we assure that Customize action is disabled when there is no customizer available: http://hg.netbeans.org/main/rev/c681fe890ced
Verified I tested on NB 6.1 RC1 (Build 200804082140) Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Enable/Customize of a breakpoint from the gutter works fine.