Community
Participate
Working Groups
When the compiler reports an OT/J specific problem the Problems view has a context menu action "Go to Language Definition". This action should be available along more paths: - from the problem marker in the left gutter - from the hover of the problem, if possible (perhaps as another button next to "Configure Problem Severity")
Created attachment 172862 [details] proposed implementation part 1 This patch implements part 1, i.e., the action in the gutter's context menu. The structure is a bit more involved than expected because: - the otdt.ui plug-in which holds the current UpdateRulerAction should not depend on otdt.ui.help - installing a new UpdateRulerAction from otdt.ui.help wasn't effective if this plugin wasn't activated when contributions were initialized (see EditorPluginAction.editorChanged() -> isOkToCreateDelegate()). Therefore, I created a new extension point in otdt.ui allowing otdt.ui.help to register an extender that hooks into the existing UpdateRulerAction. The rest of the implementation is mostly straight-forward.
Created attachment 172864 [details] Implementation part 2 This little team class adds a "Go to Language Definition" button to the toolbar of a java problem hover, if the problem is indeed OT/J related.
Implementation has been committed as r537 - r541.
Verified using build 201007011455.