Class InlinedAnnotationSupport
java.lang.Object
org.eclipse.jface.text.source.inlined.InlinedAnnotationSupport
Support to draw inlined annotations:
- line header annotation with
LineHeaderAnnotation
. - line content annotation with
LineContentAnnotation
.
- Since:
- 3.13
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends AbstractInlinedAnnotation>
TReturns the existing codemining annotation with the given position information and null otherwise.void
install
(ISourceViewer viewer, AnnotationPainter painter) Install the inlined annotation support for the given viewer.void
Set the color to use to draw the inlined annotations.void
Unisntall the inlined annotation supportvoid
updateAnnotations
(Set<AbstractInlinedAnnotation> annotations) Update the given inlined annotation.
-
Constructor Details
-
InlinedAnnotationSupport
public InlinedAnnotationSupport()
-
-
Method Details
-
install
Install the inlined annotation support for the given viewer.- Parameters:
viewer
- the source viewerpainter
- the annotation painter to use to draw the inlined annotations.
-
setColor
Set the color to use to draw the inlined annotations.- Parameters:
color
- the color to use to draw the inlined annotations.
-
uninstall
public void uninstall()Unisntall the inlined annotation support -
updateAnnotations
Update the given inlined annotation.- Parameters:
annotations
- the inlined annotation.
-
findExistingAnnotation
Returns the existing codemining annotation with the given position information and null otherwise.- Parameters:
pos
- the position- Returns:
- the existing codemining annotation with the given position information and null otherwise.
-