public class AnnotationBarHoverManager extends AbstractHoverInformationControlManager
Modifier and Type | Class and Description |
---|---|
protected class |
AnnotationBarHoverManager.Closer
Deprecated.
As of 3.4, no longer used as closer from super class is used
|
AbstractInformationControlManager.Anchor, AbstractInformationControlManager.IInformationControlCloser
Modifier and Type | Field and Description |
---|---|
protected boolean |
fAllowMouseExit
Indicates whether the mouse cursor is allowed to leave the subject area without closing the hover.
|
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
Constructor and Description |
---|
AnnotationBarHoverManager(ISourceViewer sourceViewer,
IVerticalRuler ruler,
IAnnotationHover annotationHover,
IInformationControlCreator creator)
Deprecated.
|
AnnotationBarHoverManager(IVerticalRulerInfo rulerInfo,
ISourceViewer sourceViewer,
IAnnotationHover annotationHover,
IInformationControlCreator creator)
Creates an annotation hover manager with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
protected void |
computeInformation()
Computes the information to be displayed and the area in which the computed
information is valid.
|
protected Point |
computeInformationControlLocation(Rectangle subjectArea,
Point controlSize)
Computes the location of the information control depending on the
subject area and the size of the information control.
|
protected Point |
computeLocation(Rectangle subjectArea,
Point controlSize,
AbstractInformationControlManager.Anchor anchor)
Computes the display location of the information control.
|
protected Point |
computeSizeConstraints(Control subjectControl,
Rectangle subjectArea,
IInformationControl informationControl)
Computes the size constraints of the information control in points.
|
protected IAnnotationHover |
getAnnotationHover()
Returns the annotation hover for this hover manager.
|
IAnnotationHover |
getCurrentAnnotationHover()
Returns the currently shown annotation hover or
null if none
hover is shown. |
org.eclipse.jface.internal.text.InternalAccessor |
getInternalAccessor()
Returns an adapter that gives access to internal methods.
|
protected ISourceViewer |
getSourceViewer()
Returns the source viewer for this hover manager.
|
protected IVerticalRulerInfo |
getVerticalRulerInfo()
Returns the vertical ruler info for this hover manager
|
protected void |
hideInformationControl()
Hides the information control and stops the information control closer.
|
protected void |
showInformationControl(Rectangle subjectArea)
Shows the information control and starts the information control closer.
|
dispose, getHoverEvent, getHoverEventLocation, getHoverEventStateMask, install, install, presentInformation, setEnabled
canClearDataOnHide, computeAvailableArea, computeSizeConstraints, disposeInformationControl, doShowInformation, getInformationControl, getNextFallbackAnchor, getSubjectArea, getSubjectControl, handleInformationControlDisposed, handleSubjectControlDisposed, isEnabled, isTakingFocusWhenVisible, restoreInformationControlBounds, setAnchor, setCloser, setCustomInformationControlCreator, setFallbackAnchors, setInformation, setInformation, setMargins, setRestoreInformationControlBounds, setSizeConstraints, showInformation, storeInformationControlBounds, takesFocusWhenVisible, updateLocation
protected boolean fAllowMouseExit
@Deprecated public AnnotationBarHoverManager(ISourceViewer sourceViewer, IVerticalRuler ruler, IAnnotationHover annotationHover, IInformationControlCreator creator)
AnnotationBarHoverManager(IVerticalRulerInfo, ISourceViewer, IAnnotationHover, IInformationControlCreator)
sourceViewer
- the source viewer this manager connects toruler
- the vertical ruler this manager connects toannotationHover
- the annotation hover providing the information to be displayedcreator
- the information control creatorpublic AnnotationBarHoverManager(IVerticalRulerInfo rulerInfo, ISourceViewer sourceViewer, IAnnotationHover annotationHover, IInformationControlCreator creator)
rulerInfo
- the vertical ruler this manager connects tosourceViewer
- the source viewer this manager connects toannotationHover
- the annotation hover providing the information to be displayed or null
if nonecreator
- the information control creatorprotected void computeInformation()
AbstractInformationControlManager
setInformation
.computeInformation
in class AbstractInformationControlManager
protected void showInformationControl(Rectangle subjectArea)
AbstractInformationControlManager
showInformationControl
in class AbstractInformationControlManager
subjectArea
- the information areaprotected void hideInformationControl()
AbstractInformationControlManager
hideInformationControl
in class AbstractHoverInformationControlManager
protected IAnnotationHover getAnnotationHover()
null
if noneprotected ISourceViewer getSourceViewer()
protected IVerticalRulerInfo getVerticalRulerInfo()
protected Point computeSizeConstraints(Control subjectControl, Rectangle subjectArea, IInformationControl informationControl)
AbstractInformationControlManager
computeSizeConstraints
in class AbstractInformationControlManager
subjectControl
- the subject controlsubjectArea
- the subject areainformationControl
- the information control whose size constraints are computedprotected Point computeInformationControlLocation(Rectangle subjectArea, Point controlSize)
AbstractInformationControlManager
computeInformationControlLocation
in class AbstractInformationControlManager
subjectArea
- the information areacontrolSize
- the size of the information controlprotected Point computeLocation(Rectangle subjectArea, Point controlSize, AbstractInformationControlManager.Anchor anchor)
AbstractInformationControlManager
computeLocation
in class AbstractInformationControlManager
subjectArea
- the subject areacontrolSize
- the size of the information controlanchor
- the anchor at the subject areapublic IAnnotationHover getCurrentAnnotationHover()
null
if none
hover is shown.null
public org.eclipse.jface.internal.text.InternalAccessor getInternalAccessor()
Note: This method is not intended to be referenced or overridden by clients.
getInternalAccessor
in class AbstractHoverInformationControlManager
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.