org.eclipse.jface.text.source
Class AnnotationBarHoverManager
java.lang.Object
|
+--org.eclipse.jface.text.AbstractInformationControlManager
|
+--org.eclipse.jface.text.AbstractHoverInformationControlManager
|
+--org.eclipse.jface.text.source.AnnotationBarHoverManager
- public class AnnotationBarHoverManager
- extends AbstractHoverInformationControlManager
This manager controls the layout, content, and visibility of an information
control in reaction to mouse hover events issued by the vertical ruler of a
source viewer.
- Since:
- 2.0
Constructor Summary |
AnnotationBarHoverManager(ISourceViewer sourceViewer,
IVerticalRuler ruler,
IAnnotationHover annotationHover,
IInformationControlCreator creator)
Deprecated. As of 2.1, replaced by AnnotationBarHoverManager(IVerticalRulerInfo, ISourceViewer, IAnnotationHover, IInformationControlCreator) |
AnnotationBarHoverManager(IVerticalRulerInfo rulerInfo,
ISourceViewer sourceViewer,
IAnnotationHover annotationHover,
IInformationControlCreator creator)
Creates an annotation hover manager with the given parameters. |
Methods inherited from class org.eclipse.jface.text.AbstractInformationControlManager |
computeInformationControlLocation, computeLocation, computeSizeConstraints, disposeInformationControl, doShowInformation, getInformationControl, getNextFallbackAnchor, getSubjectArea, getSubjectControl, handleInformationControlDisposed, handleSubjectControlDisposed, hideInformationControl, install, isEnabled, setAnchor, setCloser, setFallbackAnchors, setInformation, setInformation, setMargins, setSizeConstraints, showInformation, showInformationControl, takesFocusWhenVisible, updateLocation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationBarHoverManager
public AnnotationBarHoverManager(ISourceViewer sourceViewer,
IVerticalRuler ruler,
IAnnotationHover annotationHover,
IInformationControlCreator creator)
- Deprecated. As of 2.1, replaced by
AnnotationBarHoverManager(IVerticalRulerInfo, ISourceViewer, IAnnotationHover, IInformationControlCreator)
- Creates an annotation hover manager with the given parameters. In addition,
the hovers anchor is RIGHT and the margin is 5 points to the right.
- Parameters:
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 creator
AnnotationBarHoverManager
public AnnotationBarHoverManager(IVerticalRulerInfo rulerInfo,
ISourceViewer sourceViewer,
IAnnotationHover annotationHover,
IInformationControlCreator creator)
- Creates an annotation hover manager with the given parameters. In addition,
the hovers anchor is RIGHT and the margin is 5 points to the right.
- Parameters:
ruler
- the vertical ruler this manager connects tosourceViewer
- the source viewer this manager connects toannotationHover
- the annotation hover providing the information to be displayedcreator
- the information control creator- Since:
- 2.1
computeInformation
protected void computeInformation()
- Description copied from class:
AbstractInformationControlManager
- Computes the information to be displayed and the area in which the computed
information is valid. Implementation of this method must finish their computation
by setting the computation results using
setInformation
.
- Overrides:
computeInformation
in class AbstractInformationControlManager
getAnnotationHover
protected IAnnotationHover getAnnotationHover()
- Returns the annotation hover for this hover manager.
- Returns:
- the annotation hover for this hover manager
- Since:
- 2.1
getSourceViewer
protected ISourceViewer getSourceViewer()
- Returns the source viewer for this hover manager.
- Returns:
- the source viewer for this hover manager
- Since:
- 2.1
getVerticalRulerInfo
protected IVerticalRulerInfo getVerticalRulerInfo()
- Returns the vertical ruler info for this hover manager
- Returns:
- the vertical ruler info for this hover manager
- Since:
- 2.1
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.