- Direct Known Subclasses:
MouseTrackListeneron the manager's subject control. The manager has by default an information control closer that closes the information control as soon as the mouse pointer leaves the subject area, the user presses a key, or the subject control is resized, moved, or deactivated.
When being activated by a mouse hover event, the manager disables itself, until the mouse leaves the subject area. Thus, the manager is usually still disabled, when the information control has already been closed by the closer.
- See Also:
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.text.AbstractInformationControlManager
Fields inherited from class org.eclipse.jface.text.AbstractInformationControlManager
ANCHOR_BOTTOM, ANCHOR_GLOBAL, ANCHOR_LEFT, ANCHOR_RIGHT, ANCHOR_TOP, DEBUG, fDisposed, fInformationControl, fInformationControlCloser, fInformationControlCreator, STORE_LOCATION_X, STORE_LOCATION_Y, STORE_SIZE_HEIGHT, STORE_SIZE_WIDTH
Method SummaryModifier and TypeMethodDescription
dispose()Disposes this manager's information control.
protected MouseEventReturns the most recent mouse hover event.
protected PointReturns the location at which the most recent mouse hover event has been issued.
protected intReturns the SWT event state of the most recent mouse hover event.
org.eclipse.jface.internal.text.InternalAccessorReturns an adapter that gives access to internal methods.
protected voidHides the information control and stops the information control closer.
voidInstalls this manager on the given control.
voidInstalls this manager on the given subject control.
protected voidPresents the information in the information control or hides the information control if no information should be presented.
(boolean enabled)Deprecated.visibility will be changed to protected
Methods inherited from class org.eclipse.jface.text.AbstractInformationControlManager
canClearDataOnHide, computeAvailableArea, computeInformation, computeInformationControlLocation, computeLocation, computeSizeConstraints, computeSizeConstraints, disposeInformationControl, doShowInformation, getInformationControl, getNextFallbackAnchor, getSubjectArea, getSubjectControl, handleInformationControlDisposed, handleSubjectControlDisposed, isEnabled, isTakingFocusWhenVisible, restoreInformationControlBounds, setAnchor, setCloser, setCustomInformationControlCreator, setFallbackAnchors, setInformation, setInformation, setMargins, setRestoreInformationControlBounds, setSizeConstraints, showInformation, showInformationControl, storeInformationControlBounds, takesFocusWhenVisible, updateLocation
(IInformationControlCreator creator)Creates a new hover information control manager using the given information control creator. By default a
Closerinstance is set as this manager's closer.
creator- the information control creator
hideInformationControlprotected void hideInformationControl()Hides the information control and stops the information control closer.
presentInformationprotected void presentInformation()Presents the information in the information control or hides the information control if no information should be presented. The information has previously been set using
This method should only be called from overriding methods or from
setEnabled@Deprecated public void setEnabled
(boolean enabled)Deprecated.visibility will be changed to protectedSets the enable state of this manager.
disposepublic void dispose()Disposes this manager's information control.
getHoverEventLocationprotected Point getHoverEventLocation()Returns the location at which the most recent mouse hover event has been issued.
- the location of the most recent mouse hover event
getHoverEventprotected MouseEvent getHoverEvent()Returns the most recent mouse hover event.
- the most recent mouse hover event or
getHoverEventStateMaskprotected int getHoverEventStateMask()Returns the SWT event state of the most recent mouse hover event.
- the SWT event state of the most recent mouse hover event
getInternalAccessorpublic org.eclipse.jface.internal.text.InternalAccessor getInternalAccessor()Returns an adapter that gives access to internal methods.
Note: This method is not intended to be referenced or overridden by clients.
installInstalls this manager on the given subject control. The hover control is now taking the role of the subject control. This implementation sets the control also as the information control closer's subject control and automatically enables this manager. The area control typically is the root composite of the display element (e.g. a window or a dialog) the subject control is embedded in. It is needed to correctly close popups when the mouse pointer leaves the popup area.
subjectControl- the subject control
areaControl- the area control
installpublic void install
(Control subjectControl)Installs this manager on the given control. The control is now taking the role of the subject control. This implementation sets the control also as the information control closer's subject control and automatically enables this manager.