Community
Participate
Working Groups
Currently the ToggleBreakpointRulerAction is fixed to always use the org.eclipse.cdt.debug.internal.ui.actions.ToggleBreakpointAdapter, which always creates the standard CDT breakpoints. This limits the flexibility for debuggers that need to use non-standard breakpoints. The solution is to have the toggle breakpoint action retrieve the correct toggle breakpoint adapter based on the resource being edited. Other debuggers could contribute a different breakpoint adapter that is returned based on the project that the user is editing. Also, please see the corresponding bug for retargetable toggle breakpoint actions found in the main menu: bug 166102.
Created attachment 64362 [details] Patch to ToggleBreakpointRulerAction. Patch to ToggleBreakpointRulerAction.
I think the patch is not quite complete for what you would like to achieve. It tries to adapt the IWorkbenchPart to IToggleBreakpointTarget, but not the underlying IResource (as in Platform/Debug RetargetAction). Furthermore, the same or similar strategy should also be applied to other occurrences of the ToggleBreakpointAdapter, namely: ManageFunctionBreakpointActionDelegate ToggleWatchpointActionDelegate I'll attach a patch.
Created attachment 64415 [details] Proposed fix This patches also the CDT clone of the Platform/Debug RetargetAction to behave in the same way as the original.
You're absolutely right Toni, Thanks
Committed patch to HEAD.
Thank you Ken! Is there any chance you'll have time to look at bug 183397 in 4.0? It relates to the same problem as this bug, i.e. allowing CDT editor to work with alternative breakpoint implementations.