org.eclipse.xtext.ui.editor.validation
Class XtextAnnotation

java.lang.Object
  extended by org.eclipse.jface.text.source.Annotation
      extended by org.eclipse.xtext.ui.editor.validation.XtextAnnotation
All Implemented Interfaces:
org.eclipse.jface.text.source.IAnnotationPresentation

public class XtextAnnotation
extends org.eclipse.jface.text.source.Annotation
implements org.eclipse.jface.text.source.IAnnotationPresentation

Author:
Heiko Behrens - Initial contribution and API

Field Summary
 
Fields inherited from class org.eclipse.jface.text.source.Annotation
TYPE_UNKNOWN
 
Fields inherited from interface org.eclipse.jface.text.source.IAnnotationPresentation
DEFAULT_LAYER
 
Constructor Summary
XtextAnnotation(java.lang.String type, boolean isPersistent, IXtextDocument document, Issue issue, boolean isQuickfixable)
           
 
Method Summary
 IXtextDocument getDocument()
           
 Issue getIssue()
           
 java.lang.String getIssueCode()
           
 java.lang.String[] getIssueData()
           
 int getLayer()
           
 org.eclipse.emf.common.util.URI getUriToProblem()
           
 boolean isQuickFixable()
           
 void paint(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.widgets.Canvas canvas, org.eclipse.swt.graphics.Rectangle bounds)
           
 
Methods inherited from class org.eclipse.jface.text.source.Annotation
getText, getType, isMarkedDeleted, isPersistent, markDeleted, setText, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XtextAnnotation

public XtextAnnotation(java.lang.String type,
                       boolean isPersistent,
                       IXtextDocument document,
                       Issue issue,
                       boolean isQuickfixable)
Method Detail

getIssueCode

public java.lang.String getIssueCode()

getIssueData

public java.lang.String[] getIssueData()

getDocument

public IXtextDocument getDocument()

getUriToProblem

public org.eclipse.emf.common.util.URI getUriToProblem()

getIssue

public Issue getIssue()

isQuickFixable

public boolean isQuickFixable()

getLayer

public int getLayer()
Specified by:
getLayer in interface org.eclipse.jface.text.source.IAnnotationPresentation

paint

public void paint(org.eclipse.swt.graphics.GC gc,
                  org.eclipse.swt.widgets.Canvas canvas,
                  org.eclipse.swt.graphics.Rectangle bounds)
Specified by:
paint in interface org.eclipse.jface.text.source.IAnnotationPresentation