org.eclipse.ui.texteditor
Class DefaultMarkerAnnotationAccess
java.lang.Object
|
+--org.eclipse.ui.texteditor.DefaultMarkerAnnotationAccess
- All Implemented Interfaces:
- IAnnotationAccess
- public class DefaultMarkerAnnotationAccess
- extends Object
- implements IAnnotationAccess
- Since:
- 2.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNKNOWN
public static final String UNKNOWN
- Constant for the unknown marker type
fMarkerAnnotationPreferences
protected MarkerAnnotationPreferences fMarkerAnnotationPreferences
- The marker annotation preferences
DefaultMarkerAnnotationAccess
public DefaultMarkerAnnotationAccess(MarkerAnnotationPreferences markerAnnotationPreferences)
- Returns a new default marker annotation access with the given preferences.
- Parameters:
markerAnnotationPreferences
-
getType
public Object getType(Annotation annotation)
- Description copied from interface:
IAnnotationAccess
- Returns the type of the given annotation.
- Specified by:
getType
in interface IAnnotationAccess
- Following copied from interface:
org.eclipse.jface.text.source.IAnnotationAccess
- Parameters:
annotation
- the annotation- Returns:
- the type of the given annotation or
null
if it has none.
isMultiLine
public boolean isMultiLine(Annotation annotation)
- Description copied from interface:
IAnnotationAccess
- Returns whether the given annotation spans multiple lines.
- Specified by:
isMultiLine
in interface IAnnotationAccess
- Following copied from interface:
org.eclipse.jface.text.source.IAnnotationAccess
- Parameters:
annotation
- the annotation- Returns:
true
if the annotation spans multiple lines,
false
otherwise
isTemporary
public boolean isTemporary(Annotation annotation)
- Description copied from interface:
IAnnotationAccess
- Returns whether the given annotation is temporary rather than persistent.
- Specified by:
isTemporary
in interface IAnnotationAccess
- Following copied from interface:
org.eclipse.jface.text.source.IAnnotationAccess
- Parameters:
annotation
- the annotation- Returns:
true
if the annotation is temporary,
false
otherwise
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.