org.eclipse.xtext.ui.editor.validation
Class XtextAnnotation
java.lang.Object
org.eclipse.jface.text.source.Annotation
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
Fields inherited from class org.eclipse.jface.text.source.Annotation |
TYPE_UNKNOWN |
Fields inherited from interface org.eclipse.jface.text.source.IAnnotationPresentation |
DEFAULT_LAYER |
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 |
XtextAnnotation
public XtextAnnotation(java.lang.String type,
boolean isPersistent,
IXtextDocument document,
Issue issue,
boolean isQuickfixable)
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