How to provide "Open Declaration" inside the Java Editor [message #1736958] |
Mon, 04 July 2016 15:23 |
Mark Drei Messages: 13 Registered: April 2016 |
Junior Member |
|
|
Hi all,
I want to enable the user to reference new elements inside the Javadoc comments. My approach was to use extension points to provide auto completion (org.eclipse.jdt.ui.javaCompletionProposalComputer) and checking whether the elements exist (org.eclipse.jdt.core.compilationParticipant).
I also managed to enable some navigation via hyperlinks (org.eclipse.ui.workbench.texteditor.hyperlinkDetectors), but this only provides the Ctrl+Click functionality, the "F3"-key is not working. When pressing F3 on my custom element, I get "Current text selection cannot be opened in an editor". How can I solve this?
There is another task, which might be related: At the definition of my custom elements, I want to provide a "Find References" functionality. This should discover all references inside the comments in all java files. How can I effectively discover where my elements are used?
I thought there might be some way to add my elements to the AST and then have them in some index which is probably generated during compiling the Java source files?
Thanks,
Mark
|
|
|
Powered by
FUDForum. Page generated in 0.03060 seconds