Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How does the JDT's Java editor implement the text hover with the F2 command?
How does the JDT's Java editor implement the text hover with the F2 command? [message #252556] Wed, 09 April 2008 16:09 Go to next message
Eclipse UserFriend
You known when you hover a keyword or class and an info popup is shown.
Press F2 to lock the info popup and you are able to scroll it
content. How does one do that? Thanks.
Re: How does the JDT's Java editor implement the text hover with the F2 command? [message #252572 is a reply to message #252556] Wed, 09 April 2008 19:24 Go to previous message
Eclipse UserFriend
AL wrote:
> You known when you hover a keyword or class and an info popup is shown.
> Press F2 to lock the info popup and you are able to scroll it
> content. How does one do that? Thanks.

Got it! Installing an ITextHover to the editor using the internal class
org.eclipse.jface.internal.text.html.BrowserInformationContr ol will do.
The AbstractTextEditor class will respond when 'F2' is pressed but it
does not create the BrowserInformationControl rather an HTMLTextPresenter.
Previous Topic:Running JUnit test org.eclipse.jdt.ui.tests.quickfix.AdvancedQuickAssistTest
Next Topic:Programmatically execute defaults actions on save for generated java source file (or ICompilationUni
Goto Forum:
  


Current Time: Tue May 06 17:37:52 EDT 2025

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

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

Back to the top