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.
While writing a bpt customizer I was in a position to have a panel get a Breakpoint and need to get at the type in order to get a sub-customizer. But there is no Breakpoint.getBreakpointType()! This would also mean that the constructor for Breakpoint needs a BT passed in. I'm sure this can be worked around but it would be a nice improvement. Also make BreakpointType become a factory of Breakpoints?
Sorry to overload this rfe .... Along the same lines BT.getCustomizer() used to take a Breakpoint object in the 3.5 timeframe. Now it doesn't. I'm finding that the passed in bpt is handy to pre-populate the customizer when you're editing the breakpoint. If the passed in event is null then the customizer can allocate one.
*** This issue has been marked as a duplicate of 47136 ***
verified (the duplicate is still marked as new, so it should be resolved someday)
To the BT.getCustomizer() - every Breakpoint implementation can have a BeanInfo. That BeanInfo is asked for a java.beans.Customizer and Customizer.setObject(Breakpoint) is called. This is what org.netbeans.modules.debugger.ui.actions.BreakpointCustomizeAction does.
Are you saying "every Breakpoint implementation can have a BeanInfo" or "every Breakpoint implementation should have a BeanInfo"
If the breakpoint wants to have enabled the standard "Customize" action in the Editor gutter then it should. Otherwise it just can. It was a convenient way how to add a Customizer without an API change. ;-)