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

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

public interface ESUpdateObserver
extends ESObserver

Notifies the UI that a list of changes will be automatically merged with the current model state.


Method Summary
 boolean inspectChanges(ESLocalProject project, List<ESChangePackage> changePackages, org.eclipse.core.runtime.IProgressMonitor monitor)
          Called to notify the observer about the changes that will be merged into the project space.
 void updateCompleted(ESLocalProject project, org.eclipse.core.runtime.IProgressMonitor monitor)
          Called after the changes have been applied to the project and the update is completed.
 

Method Detail

inspectChanges

boolean inspectChanges(ESLocalProject project,
                       List<ESChangePackage> changePackages,
                       org.eclipse.core.runtime.IProgressMonitor monitor)
Called to notify the observer about the changes that will be merged into the project space.

Parameters:
project - the ESLocalProject that should be updated
changePackages - a list of ESChangePackages containing the update changes
monitor - an IProgressMonitor instance that may be used by clients to inform about progress
Returns:
false if the observer wants to cancel the update, true otherwise

updateCompleted

void updateCompleted(ESLocalProject project,
                     org.eclipse.core.runtime.IProgressMonitor monitor)
Called after the changes have been applied to the project and the update is completed.

Parameters:
project - the ESLocalProject whose update has been completed
monitor - an IProgressMonitor instance that may be used by clients to inform about progress


Copyright © 2015. All Rights Reserved.