public class ResourceMarkerAnnotationModel extends AbstractMarkerAnnotationModel
This class may be instantiated; it is not intended to be subclassed.
fAnnotationModelListeners, fAnnotations, fDocument
Constructor and Description |
---|
ResourceMarkerAnnotationModel(IResource resource)
Creates a marker annotation model with the given resource as the source
of the markers.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected void |
update(IMarkerDelta[] markerDeltas)
Updates this model to the given marker deltas.
|
addMarkerAnnotation, addMarkerUpdater, commit, connected, createMarkerAnnotation, createPositionFromMarker, disconnected, getMarkerAnnotation, getMarkerPosition, handleCoreException, modifyMarkerAnnotation, reinitialize, removeAnnotations, removeMarkerAnnotation, removeMarkerUpdater, resetMarkers, revert, updateMarker, updateMarker, updateMarkers
addAnnotation, addAnnotation, addAnnotationModel, addAnnotationModelListener, addPosition, cleanup, connect, createAnnotationModelEvent, disconnect, fireModelChanged, fireModelChanged, getAnnotationIterator, getAnnotationIterator, getAnnotationIterator, getAnnotationMap, getAnnotationModel, getAnnotationModelEvent, getLockObject, getModificationStamp, getPosition, modifyAnnotation, modifyAnnotationPosition, modifyAnnotationPosition, removeAllAnnotations, removeAllAnnotations, removeAnnotation, removeAnnotation, removeAnnotationModel, removeAnnotationModelListener, removePosition, replaceAnnotations, replaceAnnotations, setLockObject
public ResourceMarkerAnnotationModel(IResource resource)
resource
- the resourceprotected boolean isAcceptable(IMarker marker)
AbstractMarkerAnnotationModel
Subclasses must implement this method.
isAcceptable
in class AbstractMarkerAnnotationModel
marker
- the markertrue
if the marker is acceptableprotected void update(IMarkerDelta[] markerDeltas)
markerDeltas
- the array of marker deltasprotected 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 array of markersCoreException
- 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()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.