Eclipse Platform
2.1

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

Field Summary
protected  MarkerAnnotationPreferences fMarkerAnnotationPreferences
          The marker annotation preferences
static String UNKNOWN
          Constant for the unknown marker type
 
Constructor Summary
DefaultMarkerAnnotationAccess(MarkerAnnotationPreferences markerAnnotationPreferences)
          Returns a new default marker annotation access with the given preferences.
 
Method Summary
 Object getType(Annotation annotation)
          Returns the type of the given annotation.
 boolean isMultiLine(Annotation annotation)
          Returns whether the given annotation spans multiple lines.
 boolean isTemporary(Annotation annotation)
          Returns whether the given annotation is temporary rather than persistent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN

public static final String UNKNOWN
Constant for the unknown marker type

fMarkerAnnotationPreferences

protected MarkerAnnotationPreferences fMarkerAnnotationPreferences
The marker annotation preferences
Constructor Detail

DefaultMarkerAnnotationAccess

public DefaultMarkerAnnotationAccess(MarkerAnnotationPreferences markerAnnotationPreferences)
Returns a new default marker annotation access with the given preferences.
Parameters:
markerAnnotationPreferences -  
Method Detail

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

Eclipse Platform
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.