Skip to main content



      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 04: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 05:37 Go to previous message
Eclipse UserFriend
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: Sun Jun 08 02:15:31 EDT 2025

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

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

Back to the top