org.eclipse.emf.emfstore.internal.client.model.impl
Class AutoOperationWrapper

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.model.impl.AutoOperationWrapper
All Implemented Interfaces:
ESOperationModifier

public class AutoOperationWrapper
extends Object
implements ESOperationModifier

Very basic implementation of an ESOperationModifier. All operations are merged into one composite operation.

Author:
wesendon

Field Summary
 
Fields inherited from interface org.eclipse.emf.emfstore.client.handler.ESOperationModifier
ID
 
Constructor Summary
AutoOperationWrapper()
           
 
Method Summary
 List<AbstractOperation> modify(List<AbstractOperation> operations, org.eclipse.emf.common.command.Command command)
           Allows to modify the recorded operations.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoOperationWrapper

public AutoOperationWrapper()
Method Detail

modify

public List<AbstractOperation> modify(List<AbstractOperation> operations,
                                      org.eclipse.emf.common.command.Command command)

Allows to modify the recorded operations.

NOTE: This method is only called if commands are used.

Specified by:
modify in interface ESOperationModifier
Parameters:
operations - the recorded operations that may be modified
command - the triggering command
Returns:
a possibly modified list of operations
See Also:
ESOperationModifier.modify(java.util.List, org.eclipse.emf.common.command.Command)


Copyright © 2015. All Rights Reserved.