public class EditorAnnotation
extends org.eclipse.jface.text.source.Annotation
implements org.eclipse.jface.text.source.IAnnotationPresentation
EditorAnnotation class.
Modifier and Type | Class and Description |
---|---|
static class |
EditorAnnotation.EditorAnnotationType |
Constructor and Description |
---|
EditorAnnotation(EditorAnnotation.EditorAnnotationType type,
int line,
java.lang.String text)
Constructor for EditorAnnotation.
|
EditorAnnotation(org.eclipse.core.resources.IMarker marker)
Constructor for EditorAnnotation.
|
EditorAnnotation(int line,
java.lang.String text)
Constructor for EditorAnnotation.
|
EditorAnnotation(eu.etaxonomy.cdm.strategy.parser.ParserProblem problem) |
Modifier and Type | Method and Description |
---|---|
int |
getLayer()
getLayer
|
int |
getLine()
Getter for the field
line . |
org.eclipse.core.resources.IMarker |
getMarker()
Getter for the field
marker . |
org.eclipse.jface.text.Position |
getPosition()
Getter for the field
position . |
java.lang.String |
getText()
Getter for the field
text . |
void |
paint(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.widgets.Canvas canvas,
org.eclipse.swt.graphics.Rectangle bounds) |
void |
setPosition(org.eclipse.jface.text.Position position)
Setter for the field
position . |
public EditorAnnotation(eu.etaxonomy.cdm.strategy.parser.ParserProblem problem)
public EditorAnnotation(org.eclipse.core.resources.IMarker marker)
Constructor for EditorAnnotation.
marker
- a org.eclipse.core.resources.IMarker object.public EditorAnnotation(int line, java.lang.String text)
Constructor for EditorAnnotation.
line
- a int.text
- a String
object.public EditorAnnotation(EditorAnnotation.EditorAnnotationType type, int line, java.lang.String text)
Constructor for EditorAnnotation.
type
- a String
object.line
- a int.text
- a String
object.public org.eclipse.core.resources.IMarker getMarker()
Getter for the field marker
.
public int getLine()
Getter for the field line
.
public java.lang.String getText()
Getter for the field text
.
getText
in class org.eclipse.jface.text.source.Annotation
String
object.public int getLayer()
getLayer
getLayer
in interface org.eclipse.jface.text.source.IAnnotationPresentation
public org.eclipse.jface.text.Position getPosition()
Getter for the field position
.
Position
object.public void setPosition(org.eclipse.jface.text.Position position)
Setter for the field position
.
position
- a Position
object.public void paint(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.widgets.Canvas canvas, org.eclipse.swt.graphics.Rectangle bounds)
paint
in interface org.eclipse.jface.text.source.IAnnotationPresentation
Copyright © 2007-2018. All Rights Reserved.