|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.text.source.Annotation
org.eclipse.ui.texteditor.SimpleMarkerAnnotation
org.eclipse.ui.texteditor.MarkerAnnotation
org.eclipse.cdt.internal.ui.editor.CMarkerAnnotation
public class CMarkerAnnotation
Field Summary | |
---|---|
static java.lang.String |
C_MARKER_TYPE_PREFIX
|
static java.lang.String |
ERROR_ANNOTATION_TYPE
|
static java.lang.String |
INFO_ANNOTATION_TYPE
|
static java.lang.String |
TASK_ANNOTATION_TYPE
|
static java.lang.String |
WARNING_ANNOTATION_TYPE
|
Fields inherited from class org.eclipse.ui.texteditor.MarkerAnnotation |
---|
PROBLEM_LAYER |
Fields inherited from class org.eclipse.jface.text.source.Annotation |
---|
TYPE_UNKNOWN |
Constructor Summary | |
---|---|
CMarkerAnnotation(org.eclipse.core.resources.IMarker marker)
|
Method Summary | |
---|---|
void |
addOverlaid(ICAnnotation annotation)
Adds the given annotation to the list of annotations which are overlaid by this annotations. |
java.lang.String[] |
getArguments()
|
int |
getId()
|
java.lang.String |
getMessage()
|
java.util.Iterator |
getOverlaidIterator()
Returns an iterator for iterating over the annotation which are overlaid by this annotation. |
ICAnnotation |
getOverlay()
Returns the overlay of this annotation. |
org.eclipse.cdt.core.model.ITranslationUnit |
getTranslationUnit()
Returns the compilation unit corresponding to the document on which the annotation is set or null if no corresponding co0mpilationunit exists. |
boolean |
hasOverlay()
Returns whether this annotation is overlaid. |
boolean |
isError()
|
boolean |
isProblem()
Tells whether this annotation is a problem annotation. |
boolean |
isTemporaryProblem()
|
boolean |
isWarning()
|
void |
removeOverlaid(ICAnnotation annotation)
Removes the given annotation from the list of annotations which are overlaid by this annotation. |
void |
setOverlay(ICAnnotation cAnnotation)
Overlays this annotation with the given cAnnotation. |
Methods inherited from class org.eclipse.ui.texteditor.MarkerAnnotation |
---|
getLayer, paint, update |
Methods inherited from class org.eclipse.ui.texteditor.SimpleMarkerAnnotation |
---|
equals, getMarker, getText, hashCode |
Methods inherited from class org.eclipse.jface.text.source.Annotation |
---|
getType, isMarkedDeleted, isPersistent, markDeleted, setText, setType |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.cdt.internal.ui.editor.ICAnnotation |
---|
getText, getType, isMarkedDeleted, isPersistent |
Field Detail |
---|
public static final java.lang.String C_MARKER_TYPE_PREFIX
public static final java.lang.String ERROR_ANNOTATION_TYPE
public static final java.lang.String WARNING_ANNOTATION_TYPE
public static final java.lang.String INFO_ANNOTATION_TYPE
public static final java.lang.String TASK_ANNOTATION_TYPE
Constructor Detail |
---|
public CMarkerAnnotation(org.eclipse.core.resources.IMarker marker)
Method Detail |
---|
public java.lang.String getMessage()
getMessage
in interface IProblemAnnotation
IProblemAnnotation.getMessage()
public boolean isError()
isError
in interface IProblemAnnotation
IProblemAnnotation.isError()
public boolean isWarning()
isWarning
in interface IProblemAnnotation
IProblemAnnotation.isWarning()
public boolean isTemporaryProblem()
isTemporaryProblem
in interface IProblemAnnotation
IProblemAnnotation.isTemporaryProblem()
public java.lang.String[] getArguments()
getArguments
in interface ICAnnotation
getArguments
in interface IProblemAnnotation
IProblemAnnotation.getArguments()
public int getId()
getId
in interface ICAnnotation
getId
in interface IProblemAnnotation
IProblemAnnotation.getId()
public boolean isProblem()
ICAnnotation
isProblem
in interface ICAnnotation
isProblem
in interface IProblemAnnotation
true
if it is a problem annotationpublic void setOverlay(ICAnnotation cAnnotation)
cAnnotation
- annotation that is overlaid by this annotationpublic boolean hasOverlay()
ICAnnotation
hasOverlay
in interface ICAnnotation
true
if overlaidpublic ICAnnotation getOverlay()
ICAnnotation
getOverlay
in interface ICAnnotation
public void addOverlaid(ICAnnotation annotation)
ICAnnotation
addOverlaid
in interface ICAnnotation
annotation
- the problem annoationpublic void removeOverlaid(ICAnnotation annotation)
ICAnnotation
removeOverlaid
in interface ICAnnotation
annotation
- the problem annoationpublic java.util.Iterator getOverlaidIterator()
ICAnnotation
getOverlaidIterator
in interface ICAnnotation
public org.eclipse.cdt.core.model.ITranslationUnit getTranslationUnit()
ICAnnotation
null
if no corresponding co0mpilationunit exists.
getTranslationUnit
in interface ICAnnotation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |