There's unfortunately currently no way to intercept mouse events in the icon area. The only way to do this at the moment is through API, so you'd have to have a menu item or some other custom UI for "Toggle Breakpoint," and do something like this:
- Code: Select all
Gutter g = ...;
GutterIconInfo info = gutter.addLineTrackingIcon(line, myBreakpointIcon);
I know that it would be a common request to be able to respond to mouse clicks in the icon area for things like breakpoints, so I can add this easily enough.