Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to provide "Open Declaration" inside the Java Editor
How to provide "Open Declaration" inside the Java Editor [message #1736958] Mon, 04 July 2016 15:23
Mark Drei is currently offline Mark DreiFriend
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
Previous Topic:Java Editor extremely slow on larger (10000 lines) files
Next Topic:How to get compiler warnings about scriptlets
Goto Forum:
  


Current Time: Mon Oct 07 04:47:53 GMT 2024

Powered by FUDForum. Page generated in 0.03060 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top