org.eclipse.emf.emfstore.client.observer
Interface ESCommitObserver

All Superinterfaces:
ESObserver
All Known Implementing Classes:
ESWorkspaceProviderImpl, OperationRecorder, ResourcePersister, SimpleOperationObserver, VersionDecorator

public interface ESCommitObserver
extends ESObserver

An observer which waits for commit notifications and authorizes the commit procedure.

Author:
shterev, emueller

Method Summary
 void commitCompleted(ESLocalProject project, ESPrimaryVersionSpec newRevision, org.eclipse.core.runtime.IProgressMonitor monitor)
          Called after the commit is completed.
 boolean inspectChanges(ESLocalProject project, ESChangePackage changePackage, org.eclipse.core.runtime.IProgressMonitor monitor)
          Called before the commit proceeds.
 

Method Detail

inspectChanges

boolean inspectChanges(ESLocalProject project,
                       ESChangePackage changePackage,
                       org.eclipse.core.runtime.IProgressMonitor monitor)
Called before the commit proceeds. A callback method to initiate the commit dialog and allow the user to confirm the changes.

Parameters:
project - the project the commit occurs on
changePackage - the ESChangePackage
monitor - an IProgressMonitor instance that may be used by clients to inform about progress
Returns:
true if the changes have been confirmed, false - otherwise.

commitCompleted

void commitCompleted(ESLocalProject project,
                     ESPrimaryVersionSpec newRevision,
                     org.eclipse.core.runtime.IProgressMonitor monitor)
Called after the commit is completed.

Parameters:
project - the project on which the commit has completed
newRevision - the new revision that was created by the commit
monitor - an IProgressMonitor instance that may be used by clients to inform about progress


Copyright © 2015. All Rights Reserved.