Community
Participate
Working Groups
The debugger would like to be able to register for "shift-click" and "alt- click" events on breakpoints in the editor ruler. This way we can implement features such as enable/disable in the ruler and "show breakpoint properties" via mouse clicks, rather than having to display the context menu.
Having better notifications is a good idea. First step has been done for annotation roll-overs (see: IVerticalRulerListener). Note: Alt is not a good choice (at least on Windows) since it activates the menu to enter a mnemonic.
org.eclipse.ui.texteditor.AbstractTextEditor.getRulerMouseListener().new MouseListener() {...}.triggerAction(String) should just call action.runWithEvent(event) to pass the event that contains the right stateMask. Then e.g. the RulerToggleBreakpointActionDelegate#runWithEvent(IAction, Event) can stop swallowing the event and the blocked bug 41544 and bug 346615 can be implemented.
Created attachment 196226 [details] Fix
Looks good to me. The only problem is that it is not easy discoverable. That would be possible if bug 87232 got fixed.
(In reply to comment #4) > That would be possible if bug 87232 got fixed. Bug 47099 is closer.
... but we should not wait for that.
Fixed with commit 2950f3b6ea5816ee027b081bddb27f7c24b54b4c.
.
I've released two follow-up commits to complete the story: - http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=2a1572b6efb0f94f98826581c80e4fd605f30894 - http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=6c3a7b4301f75433ebbd03ae094935aa066f48ed Fixes: - Event#type is now set - Events are also sent for clicks in the Java Editor's expansion hover (Preferences > Java > Editor > Hover).