Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Implement Hyperlinking/Open Declaration in custom editor(Work required to add Show Source/Open Declaration code for a custom editor such as the JDT)
icon5.gif  Implement Hyperlinking/Open Declaration in custom editor [message #631800] Fri, 08 October 2010 19:50 Go to next message
Nehad is currently offline NehadFriend
Messages: 3
Registered: October 2010
Junior Member
Hi,
I am creating a custom editor with usual features such as Folding, Content Assistance, Outline etc.
Now I moved to Hyperlinking.
Normally on JDT, when you curse on an element and press F3 or Ctrl+ click, it takes you to the element declaration.
I looked in the Eclipse Help but I could not find how to implement this feature, what classes / interfaces need to be extend / implement and how to register it.

Classes / Interfaces names and the functionality for each one will be great help ( if they are in the Eclipse Help, then names only will be enough Smile ).

Thanks.
Nehad
Re: Implement Hyperlinking/Open Declaration in custom editor [message #631853 is a reply to message #631800] Sat, 09 October 2010 07:03 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
nehad.mohamad@gmail.com wrote:
> Hi, I am creating a custom editor with usual features such as Folding,
> Content Assistance, Outline etc. Now I moved to Hyperlinking. Normally
> on JDT, when you curse on an element and press F3 or Ctrl+ click, it
> takes you to the element declaration. I looked in the Eclipse Help but
> I could not find how to implement this feature, what classes /
> interfaces need to be extend / implement and how to register it.
> Classes / Interfaces names and the functionality for each one will be
> great help ( if they are in the Eclipse Help, then names only will be
> enough :) ).
Take a look at the following extension points:
org.eclipse.ui.workbench.texteditor.hyperlinkDetectors
org.eclipse.ui.workbench.texteditor.hyperlinkDetectorTargets

Dani
>
> Thanks. Nehad
Re: Implement Hyperlinking/Open Declaration in custom editor [message #632710 is a reply to message #631853] Thu, 14 October 2010 02:26 Go to previous message
Nehad is currently offline NehadFriend
Messages: 3
Registered: October 2010
Junior Member
Thanks for help and sorry for reply late.

I looked in these extension points and I could not find in them any functionality to add "Go to source code" feature in my editor, the classes there are final, no classes to extend and override some methods to add my "source code locater" implementation.( as I was expecting )

I think I find way to do that.
I am gonna add a new editor command, keybind it with F3, and when execute this command, get the current location of the curser in the editor and start from there.
What do you think ?

Nehad
Previous Topic:How to Get the Little Check Mark next to a Breakpoint
Next Topic:File -> Refresh disabled/greyed out in my eclipse plugin
Goto Forum:
  


Current Time: Thu Apr 25 08:37:59 GMT 2024

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

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

Back to the top