org.eclipse.ecf.sync
Interface IModelChange

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable
All Known Subinterfaces:
IDocumentChange
All Known Implementing Classes:
DocumentChangeMessage

public interface IModelChange
extends org.eclipse.core.runtime.IAdaptable

Model change interface. This super interface is a 'tag' interface and does not define any methods. See sub-interfaces that extend this interface.

Since:
2.1

Method Summary
 void applyToModel(java.lang.Object model)
          Apply the change to a model.
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

applyToModel

void applyToModel(java.lang.Object model)
                  throws ModelUpdateException
Apply the change to a model. Clients may use this method to apply the change to a model of appropriate type (e.g. IDocument for IDocumentChange).

Parameters:
model - the model to apply this change to. Must not be null. Should be of type appropriate to the model.
Throws:
ModelUpdateException - thrown if model is null, of incorrect type, or cannot be changed.