org.eclipse.emf.emfstore.internal.client.observers
Interface OperationObserver

All Superinterfaces:
ESObserver
All Known Implementing Classes:
SimpleOperationObserver

public interface OperationObserver
extends ESObserver

Operation observers are added to a project space and informed whenever an operation is executed or undone.

Author:
hodaie

Method Summary
 void operationExecuted(ProjectSpace projectSpace, AbstractOperation operation)
          Called when an AbstractOperation has been executed.
 void operationUndone(ProjectSpace projectSpace, AbstractOperation operation)
          Called when an AbstractOperation has been reversed.
 

Method Detail

operationExecuted

void operationExecuted(ProjectSpace projectSpace,
                       AbstractOperation operation)
Called when an AbstractOperation has been executed.

Parameters:
projectSpace - the ProjectSpace this operation was executed on
operation - the executed operation

operationUndone

void operationUndone(ProjectSpace projectSpace,
                     AbstractOperation operation)
Called when an AbstractOperation has been reversed.

Parameters:
projectSpace - the ProjectSpace this operation was undone on
operation - the operation that has been reversed.
Note: the given operation is not reserved. If you wish to get the reversed operation, call AbstractOperation.reverse() on operation


Copyright © 2016. All Rights Reserved.