Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to add actions to the text hover popup in a TextEditor
How to add actions to the text hover popup in a TextEditor [message #660640] Sun, 20 March 2011 11:16
KHALFAOUI Imen is currently offline KHALFAOUI Imen
Messages: 9
Registered: April 2010
Junior Member
Hi, I'm extending Eclipse using the Eclipse plug-in infrastructure, and I've come into a problem:

Under the Java editor of Eclipse, when you fly over a variable. a popup appears showing the origin of the variable. pressing F2 gives focus to the popup and pressing F3 move the cursor on the variable declaration.

I would apply the same thing to my editor!

So, I created an class (in my SourceViewerConfiguration) witch
implements ITextHover
Then I expanded the methods:
getHoverRegion(...)
and
getHoverInfo(...)


While executing, pressing F2 gives nicely focus to the popup . But I would like to do more and add Actions in that popup: "open declaration" for example?

How can i contribuate to the Hover Popup?

Thank's in advance.
Best Regards.

[Updated on: Sun, 20 March 2011 11:17]

Report message to a moderator

Previous Topic:Access plug-in from Target Platform in ANT build script
Next Topic:creating a plugin project progamatically
Goto Forum:
  


Current Time: Wed Jul 23 08:04:14 EDT 2014

Powered by FUDForum. Page generated in 0.07253 seconds