| focus on hover info [message #176063] |
Mon, 05 January 2004 23:00  |
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
|
|
|