|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A 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 an AbstractMarkerAnnotationModel
.
Method Summary | |
String[] |
getAttribute()
Returns the attributes for which this updater is responsible. |
String |
getMarkerType()
Returns the marker type for which this updater is responsible. |
boolean |
updateMarker(IMarker marker,
IDocument document,
Position position)
Updates the given marker according to the position of the given document. |
Method Detail |
public String getMarkerType()
null
, the updater assumes responsibility
for any marker type.
null
for any marker typepublic String[] getAttribute()
null
, the updater assumes responsibility for
any attributes.
null
for any attributepublic boolean updateMarker(IMarker marker, IDocument document, Position position)
null
, the marker is assumed to
carry the correct positional information. If the updater recognizes that
the marker should be deleted, it returns false
.
marker
- the marker to be updateddocument
- the document into which the given position pointsposition
- the current position of the marker inside the given document
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |