1 package eu
.etaxonomy
.taxeditor
.prototype2
.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 WarningAnnotation
extends Annotation
{
10 private IMarker marker
;
13 private Position position
;
15 // error identifiers, images and colors
16 public static String WARNING_TYPE
= "warning.type";
17 public static Image WARNING_IMAGE
;
18 public static final RGB WARNING_RGB
= new RGB(244, 200, 45);
20 public WarningAnnotation(IMarker marker
) {
24 public WarningAnnotation(int line
, String text
) {
25 super(WARNING_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
;