I want to add a ctrl - clic kind of listener to a custom javadoc annotation in eclipse java editor, thus I want to be able to move the focus to a specific place when the use ctrl - clic @customJavadoc annotation.
A:
I just found the way to get it done, using an eclipse extension:
<plugin>
<extension
point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectors">
<hyperlinkDetector
activate="true"
class="testproject.ShouldAnnotationDetector"
id="testProject.shouldAnnotationDetector"
name="name"
targetId="org.eclipse.jdt.ui.javaCode">
</hyperlinkDetector>
</extension>
</plugin>
where testproject.ShouldAnnotationDetector should extend testproject.ShouldAnnotationDetector
jaime
2010-06-07 23:09:05