Package org.eclipse.ui.texteditor
Interface IMarkerUpdater
-
- All Known Implementing Classes:
BasicMarkerUpdater
public interface IMarkerUpdaterA marker updater is responsible for saving changes to markers. Marker updaters either update markers of a specific types or any type. Also they either assume update responsibility for a specific set of marker attributes or any marker attribute. Marker updater must be registered with anAbstractMarkerAnnotationModel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]getAttribute()Returns the attributes for which this updater is responsible.StringgetMarkerType()Returns the marker type for which this updater is responsible.booleanupdateMarker(IMarker marker, IDocument document, Position position)Updates the given marker according to the position of the given document.
-
-
-
Method Detail
-
getMarkerType
String getMarkerType()
Returns the marker type for which this updater is responsible. If the result isnull, the updater assumes responsibility for any marker type.- Returns:
- the marker type or
nullfor any marker type
-
getAttribute
String[] getAttribute()
Returns the attributes for which this updater is responsible. If the result isnull, the updater assumes responsibility for any attributes.- Returns:
- the attributes or
nullfor any attribute
-
updateMarker
boolean updateMarker(IMarker marker, IDocument document, Position position)
Updates the given marker according to the position of the given document. If the given position isnull, the marker is assumed to carry the correct positional information.- Parameters:
marker- the marker to be updateddocument- the document into which the given position pointsposition- the current position of the marker inside the given document- Returns:
falseif the updater recognizes that the marker should be deleted
-
-