|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.text.source.AnnotationModel | +--org.eclipse.ui.texteditor.AbstractMarkerAnnotationModel | +--org.eclipse.ui.texteditor.ResourceMarkerAnnotationModel
A marker annotation model whose underlying source of markers is a resource in the workspace.
This class may be instantiated; it is not intended to be subclassed.
Field Summary |
Fields inherited from class org.eclipse.jface.text.source.AnnotationModel |
fAnnotationModelListeners, fAnnotations, fDocument |
Constructor Summary | |
ResourceMarkerAnnotationModel(IResource resource)
Creates a marker annotation model with the given resource as the source of the markers. |
Method Summary | |
protected void |
deleteMarkers(IMarker[] markers)
Deletes the given markers from this model. |
protected IResource |
getResource()
Returns the resource serving as the source of markers for this annotation model. |
protected boolean |
isAcceptable(IMarker marker)
Determines whether the marker is acceptable as an addition to this model. |
protected void |
listenToMarkerChanges(boolean listen)
Tells the model whether it should listen for marker changes. |
protected IMarker[] |
retrieveMarkers()
Retrieves all markers from this model. |
Methods inherited from class org.eclipse.ui.texteditor.AbstractMarkerAnnotationModel |
addMarkerAnnotation, addMarkerUpdater, connected, createMarkerAnnotation, createPositionFromMarker, disconnected, getMarkerAnnotation, getMarkerPosition, handleCoreException, modifyMarkerAnnotation, removeAnnotations, removeMarkerAnnotation, removeMarkerUpdater, resetMarkers, updateMarker, updateMarkers |
Methods inherited from class org.eclipse.jface.text.source.AnnotationModel |
addAnnotation, addAnnotation, addAnnotationModelListener, addPosition, cleanup, connect, disconnect, fireModelChanged, fireModelChanged, getAnnotationIterator, getAnnotationIterator, getPosition, removeAllAnnotations, removeAllAnnotations, removeAnnotation, removeAnnotation, removeAnnotationModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResourceMarkerAnnotationModel(IResource resource)
resource
- the resourceMethod Detail |
protected boolean isAcceptable(IMarker marker)
AbstractMarkerAnnotationModel
Subclasses must implement this method.
isAcceptable
in class AbstractMarkerAnnotationModel
marker
- the marker
true
if the marker is acceptableprotected void listenToMarkerChanges(boolean listen)
AbstractMarkerAnnotationModel
Subclasses must implement this method.
listenToMarkerChanges
in class AbstractMarkerAnnotationModel
listen
- true
if this model should listen, and
false
otherwiseprotected void deleteMarkers(IMarker[] markers) throws CoreException
AbstractMarkerAnnotationModel
Subclasses must implement this method.
deleteMarkers
in class AbstractMarkerAnnotationModel
markers
- the list of markers
CoreException
- if there are problems deleting the markersprotected IMarker[] retrieveMarkers() throws CoreException
AbstractMarkerAnnotationModel
Subclasses must implement this method.
retrieveMarkers
in class AbstractMarkerAnnotationModel
CoreException
- if there is a problem getting the markersprotected IResource getResource()
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |