038cf74fa76841d43d096f8d4078a1676b57534f
1 package eu
.etaxonomy
.taxeditor
.view
.nameviewersupport
;
3 import org
.eclipse
.core
.resources
.IMarker
;
4 import org
.eclipse
.jface
.text
.Position
;
5 import org
.eclipse
.jface
.text
.source
.Annotation
;
6 import org
.eclipse
.swt
.graphics
.Image
;
7 import org
.eclipse
.swt
.graphics
.RGB
;
9 public class ErrorAnnotation
extends Annotation
{
10 private IMarker marker
;
13 private Position position
;
15 // error identifiers, images and colors
16 public static String ERROR_TYPE
= "error.type";
17 public static Image ERROR_IMAGE
;
18 public static final RGB ERROR_RGB
= new RGB(255, 0, 0);
20 public ErrorAnnotation(IMarker marker
) {
24 public ErrorAnnotation(int line
, String text
) {
25 super(ERROR_TYPE
, true, null);
31 public IMarker
getMarker() {
35 public int getLine() {
39 public String
getText() {
43 public Image
getImage() {
47 public int getLayer() {
51 public String
getType() {
55 public Position
getPosition() {
59 public void setPosition(Position position
) {
60 this.position
= position
;