Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

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
 void commit ( IDocument document)
          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 revert ( IDocument document)
          Changes the current transient state of the annotation model to match the last persisted state.
 

Method Detail

commit

void commit(
IDocument document)
            throws 
CoreException
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

void revert(
IDocument document)
            throws 
CoreException
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

void reinitialize(
IDocument document)
                  throws 
CoreException
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 last commit or revert operation.

Parameters:
document - the document the annotation model is connected to
Throws:
CoreException - in case accessing the persistent state fails

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire