Skip to main content


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 15:16
KHALFAOUI Imen is currently offline KHALFAOUI ImenFriend
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 15: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: Sat Apr 20 06:17:57 GMT 2024

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

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

Back to the top