Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Howto implement "Press F2 for Focus" on text hover
Howto implement "Press F2 for Focus" on text hover [message #183766] Mon, 11 December 2006 09:19 Go to next message
Eclipse UserFriend
Originally posted by: wolfgang.moestl.softwareag.com

Hi,

How can I implement the "Press F2 for Focus" thing on a text hover?

I have implemented an editor using the hover in order to show some detail
information.
The hover itself works as designed, but I’m going nuts on implementing the
F2 functionality like it’s done by the JDT.

I searched the forum already but did not find useful help.

Can anyone provide help on this?
Which classes implement this behaviour in the JDT?
Any code-snippets would be very helpful!

Best regards,
Wolf
Re: Howto implement "Press F2 for Focus" on text hover [message #184374 is a reply to message #183766] Wed, 13 December 2006 10:37 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Wolf wrote:

> Hi,
>
> How can I implement the "Press F2 for Focus" thing on a text hover?

This is done via IInformationPresenter. Take a look at
JavaSourceViewerConfiguration.getInformationPresenter(...) on how to
configure this.

Dani

>
> I have implemented an editor using the hover in order to show some
> detail information.
> The hover itself works as designed, but I�m going nuts on implementing
> the F2 functionality like it�s done by the JDT.
>
> I searched the forum already but did not find useful help.
>
> Can anyone provide help on this?
> Which classes implement this behaviour in the JDT?
> Any code-snippets would be very helpful!
>
> Best regards,
> Wolf
>
>
Previous Topic:expand tabs
Next Topic:Discouraged Access Warning:IDEInternalWorkbenchImages
Goto Forum:
  


Current Time: Sat Sep 21 17:26:31 GMT 2024

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

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

Back to the top