public interface IInformationControlExtension5
IInformationControl
.
Adds API
Important: Enriching this information control only works properly if
IInformationControl.isFocusControl()
is implemented like this (fShell
is the control's shell):
return fShell.getDisplay().getActiveShell() == fShellLikewise,
IInformationControl.addFocusListener(org.eclipse.swt.events.FocusListener)
should install listeners for SWT.Activate
and SWT.Deactivate
on the shell and forward events to the focus listeners. Clients are
encouraged to subclass AbstractInformationControl
, which does this
for free.
IInformationControl
Modifier and Type | Method and Description |
---|---|
Point |
computeSizeConstraints(int widthInChars,
int heightInChars)
Computes the width- and height constraints of the information control in
pixels, based on the given width and height in characters.
|
boolean |
containsControl(Control control)
Tests whether the given control is this information control
or a child of this information control.
|
IInformationControlCreator |
getInformationPresenterControlCreator()
Returns the rich information control creator for this information control.
|
boolean |
isVisible() |
boolean containsControl(Control control)
control
- the control to testtrue
iff the given control is this information control
or a child of this information controlboolean isVisible()
true
iff the information control is currently visiblePoint computeSizeConstraints(int widthInChars, int heightInChars)
dialog font
.widthInChars
- the width constraint in number of charactersheightInChars
- the height constraint in number of charactersnull
to use the subject control's font to calculate the sizeIInformationControlCreator getInformationPresenterControlCreator()
The returned information control creator is used to create an enriched version of this
information control, e.g. when the mouse is moved into this control and it needs to be
enriched
or when it needs to be made sticky for other reasons.
The returned information control creator must create information controls
that implement IInformationControlExtension3
and IInformationControlExtension2
,
and whose IInformationControlExtension2.setInput(Object)
accepts all inputs that are
also supported by this information control.
Note that automatic enriching of this information control works only if it also implements
IInformationControlExtension3
.
This method may be called frequently, so implementors should ensure it returns quickly, e.g. by caching the returned creator.
null
to disable enriching
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.