org.eclipse.emf.workspace.impl
Class EMFOperationTransaction

java.lang.Object
  extended byEMFCommandTransaction
      extended byorg.eclipse.emf.workspace.impl.EMFOperationTransaction

public class EMFOperationTransaction
extends EMFCommandTransaction

A specialized transaction implementation that knows the EMFCommandOperation that it supports. It is used to communicate trigger information back to the command operation to support undo/redo.

See Also:
Serialized Form

Constructor Summary
EMFOperationTransaction(org.eclipse.emf.common.command.Command command, InternalTransactionalEditingDomain domain, java.util.Map options)
          Initializes me with the command, my editing domain, and my options.
 
Method Summary
 EMFCommandOperation getOperation()
          Obtains the operation that wraps my command.
 void setOperation(EMFCommandOperation operation)
          Sets the operation that wraps my command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EMFOperationTransaction

public EMFOperationTransaction(org.eclipse.emf.common.command.Command command,
                               InternalTransactionalEditingDomain domain,
                               java.util.Map options)
Initializes me with the command, my editing domain, and my options.

Parameters:
command - a command that is being wrapped in an EMFCommandOperation
domain - my editing domain
options - my options
Method Detail

getOperation

public EMFCommandOperation getOperation()
Obtains the operation that wraps my command.

Returns:
my operation

setOperation

public void setOperation(EMFCommandOperation operation)
Sets the operation that wraps my command.

Parameters:
operation - my operation

Copyright 2002, 2006 IBM Corporation and others.
All Rights Reserved.