org.eclipse.emf.emfstore.internal.client.model.changeTracking.commands
Class EMFStoreCommandNotifier

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.model.changeTracking.commands.EMFStoreCommandNotifier

public class EMFStoreCommandNotifier
extends Object

Notifier for Commands. Notifies Observers about command start, completion and failure.

Author:
koegel

Constructor Summary
EMFStoreCommandNotifier()
           
 
Method Summary
 void addCommandStackObserver(ESCommandObserver observer)
          Add a command stack observer.
 void notifiyListenersAboutCommandCompleted(org.eclipse.emf.common.command.Command completedCommand)
          Notify all registered listeners about command completion.
 void notifiyListenersAboutCommandFailed(org.eclipse.emf.common.command.Command command, Exception exception)
          Notify all registered listeners about command failure.
 void notifiyListenersAboutStart(org.eclipse.emf.common.command.Command startedCommand)
          Notify all registered listeners about command start.
 void removeCommandStackObserver(ESCommandObserver observer)
          Remove a command stack observer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EMFStoreCommandNotifier

public EMFStoreCommandNotifier()
Method Detail

notifiyListenersAboutStart

public void notifiyListenersAboutStart(org.eclipse.emf.common.command.Command startedCommand)
Notify all registered listeners about command start.

Parameters:
startedCommand - the command that has been started

notifiyListenersAboutCommandFailed

public void notifiyListenersAboutCommandFailed(org.eclipse.emf.common.command.Command command,
                                               Exception exception)
Notify all registered listeners about command failure.

Parameters:
command - the command
exception - the exception that triggered the failure

notifiyListenersAboutCommandCompleted

public void notifiyListenersAboutCommandCompleted(org.eclipse.emf.common.command.Command completedCommand)
Notify all registered listeners about command completion.

Parameters:
completedCommand - the completed command

addCommandStackObserver

public void addCommandStackObserver(ESCommandObserver observer)
Add a command stack observer.

Parameters:
observer - the observer to be added

removeCommandStackObserver

public void removeCommandStackObserver(ESCommandObserver observer)
Remove a command stack observer.

Parameters:
observer - the observer to be removed


Copyright © 2015. All Rights Reserved.