Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » focus on hover info
focus on hover info [message #176063] Mon, 05 January 2004 23:00 Go to previous message
Geoff Howard is currently offline Geoff Howard
Messages: 9
Registered: July 2009
Junior Member
I have an editor plugin in 3.0M5 which is providing a text hover
behavior with a class which implements ITextHover, ITextHoverExtension.
I'm trying to get F2 to give focus (and a scroll bar) to the hover info
when the text is long. I've looked over the JDT code and can't see what
they're doing to set this up any different than what I've done.

my getInformationControlCreator method is:

return new IInformationControlCreator() {
public IInformationControl
createInformationControl(Shell parent) {
DefaultInformationControl ic =
new DefaultInformationControl(parent, SWT.NONE,
null,"Press F2 to focus");
return ic;
}
};

I see the statusFieldText Correctly, but F2 simply closes the hover
info. As a long shot, I also tried passing in a trivial
IImplementationPresenter instead of null to the
DefaultInformationControl constructor but that had no effect.

At this point, I'm not sure if I've failed to implement some other step
(for example is F2 automatically bound to this behavior or do I need to
configure that?) or if I have some event listener which is intercepting
that event and fouling it up.

Thanks,
Geoff
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:How to monitor changes to properties managed by project PropertyPages?
Next Topic:F2 focus for a TextHover comment
Goto Forum:
  


Current Time: Tue May 21 06:28:05 EDT 2013

Powered by FUDForum. Page generated in 0.02768 seconds