/******************************************************************************* * Copyright (c) 2008-2011 Chair for Applied Software Engineering, * Technische Universitaet Muenchen. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: ******************************************************************************/ package org.eclipse.emf.emfstore.client.model.observers; import java.util.List; import org.eclipse.emf.emfstore.client.model.ProjectSpace; import org.eclipse.emf.emfstore.common.observer.IObserver; import org.eclipse.emf.emfstore.server.model.versioning.ChangePackage; /** * Notifies the UI that a list of changes will be automatically merged with the current model state. */ public interface UpdateObserver extends IObserver { /** * Called to notify the observer about the changes that will be merged into the project space. * * @param projectSpace the project space that should be updated * @param changePackages a list of change packages * @return false if the observer wants to cancel the update */ boolean inspectChanges(ProjectSpace projectSpace, List<ChangePackage> changePackages); /** * Called after the changes have been applied to the project and the update is completed. * * @param projectSpace project space */ void updateCompleted(ProjectSpace projectSpace); }