blob: 9e1b61434671a32471f57aff9c698731fa0436dc [file] [log] [blame]
/*******************************************************************************
* Copyright 2011 Chair for Applied Software Engineering,
* Technische Universitaet Muenchen.
* All rights reserved. This program and the accompanying materials
* are made available under 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.changeTracking.commands;
import org.eclipse.emf.common.command.Command;
import org.eclipse.emf.emfstore.common.observer.IObserver;
/**
* Listener for a {@link EMFStoreTransactionalCommandStack}.
*
* @author koegel
*/
public interface CommandObserver extends IObserver {
/**
* Called to notify listener about the start of the given command.
*
* @param command the command
*/
void commandStarted(Command command);
/**
* Called to notify listener about the successful completion of the given command.
*
* @param command the command
*/
void commandCompleted(Command command);
/**
* Called to notify listener about the failure of the given command.
*
* @param command the command
* @param exception the exception that occured
*/
void commandFailed(Command command, Exception exception);
}