Eclipse Platform
Release 3.2

org.eclipse.team.ui.mapping
Interface ISaveableCompareModel

All Superinterfaces:
ISaveableModel
All Known Implementing Classes:
SaveableCompareModel

public interface ISaveableCompareModel
extends ISaveableModel

A saveable compare model is used to buffer changes made when comparing or merging a model. A compare model can be shared between multiple typed elements within a comparison. The compare model is used by the comparison container in order to determine when a save is required.

This interface is not intended to be implemented by clients. Clients can instead subclass SaveableCompareModel

EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is a guarantee neither that this API will work nor that it will remain the same. Please do not use this API without consulting with the Platform/Team team.

Since:
3.2

Field Summary
static int PROP_DIRTY
          The property id for isDirty.
 
Method Summary
 void addPropertyListener(IPropertyListener listener)
          Add a property change listener.
 void doRevert(IProgressMonitor monitor)
          Revert any changes in the buffer back to the last saved state.
 void removePropertyListener(IPropertyListener listener)
          Remove a property change listener.
 
Methods inherited from interface org.eclipse.ui.ISaveableModel
doSave, getImageDescriptor, getName, getToolTipText, isDirty
 

Field Detail

PROP_DIRTY

public static final int PROP_DIRTY
The property id for isDirty.

See Also:
Constant Field Values
Method Detail

doRevert

public void doRevert(IProgressMonitor monitor)
Revert any changes in the buffer back to the last saved state.

Parameters:
monitor - a progress monitor on null if progress feedback is not required

addPropertyListener

public void addPropertyListener(IPropertyListener listener)
Add a property change listener. Adding a listener that is allready registered has no effect.

Parameters:
listener - the listener

removePropertyListener

public void removePropertyListener(IPropertyListener listener)
Remove a property change listener. Removing a listener that is not registered has no effect.

Parameters:
listener - the listener

Eclipse Platform
Release 3.2

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.