| Summary: | "Go to Language Definition" should be available along more paths | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] Objectteams | Reporter: | Stephan Herrmann <stephan.herrmann> | ||||||
| Component: | OTDT | Assignee: | Stephan Herrmann <stephan.herrmann> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | enhancement | ||||||||
| Priority: | P3 | ||||||||
| Version: | 0.7 | ||||||||
| Target Milestone: | 0.7 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Stephan Herrmann
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. |