Package org.eclipse.core.filebuffers
Interface IPersistableAnnotationModel
- All Known Implementing Classes:
AbstractMarkerAnnotationModel
,ResourceMarkerAnnotationModel
public interface IPersistableAnnotationModel
Tagging interface for
IAnnotationModel
implementers that offer
state persistence.- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Transforms the current transient state of the annotation model into a persistent state.void
reinitialize
(IDocument document) Forces this annotation model to re-initialize from the persistent state.void
Changes the current transient state of the annotation model to match the last persisted state.
-
Method Details
-
commit
Transforms the current transient state of the annotation model into a persistent state.- Parameters:
document
- the document the annotation model is connected to- Throws:
CoreException
- in case the transformation fails
-
revert
Changes the current transient state of the annotation model to match the last persisted state.- Parameters:
document
- the document the annotation model is connected to- Throws:
CoreException
- in case accessing the persisted state
-
reinitialize
Forces this annotation model to re-initialize from the persistent state. The persistent state must not be the same as the last persisted state. I.e. external modification may have caused changes to the persistent state since the lastcommit
orrevert
operation.- Parameters:
document
- the document the annotation model is connected to- Throws:
CoreException
- in case accessing the persistent state fails
-