org.eclipse.emf.workspace.impl
Class NonEMFTransaction

java.lang.Object
  extended byTransactionImpl
      extended byorg.eclipse.emf.workspace.impl.NonEMFTransaction

public class NonEMFTransaction
extends TransactionImpl

A transaction encapsulating non-EMF changes (as represented by an unoable operation).

See Also:
Serialized Form

Constructor Summary
NonEMFTransaction(TransactionalEditingDomain domain, org.eclipse.core.commands.operations.IUndoableOperation operation, org.eclipse.core.runtime.IAdaptable info)
          Initializes me with the undoable operation that represents my non-EMF changes.
NonEMFTransaction(TransactionalEditingDomain domain, org.eclipse.core.commands.operations.IUndoableOperation operation, org.eclipse.core.runtime.IAdaptable info, Map options)
          Initializes me with the undoable operation that represents my non-EMF changes and transaction options.
 
Method Summary
 void commit()
          Appends my non-EMF change and commits.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonEMFTransaction

public NonEMFTransaction(TransactionalEditingDomain domain,
                         org.eclipse.core.commands.operations.IUndoableOperation operation,
                         org.eclipse.core.runtime.IAdaptable info)
Initializes me with the undoable operation that represents my non-EMF changes.

Parameters:
domain - my editing domain
operation - the non-EMF changes that I record
info - the adaptable object provided to the operation when it is executed

NonEMFTransaction

public NonEMFTransaction(TransactionalEditingDomain domain,
                         org.eclipse.core.commands.operations.IUndoableOperation operation,
                         org.eclipse.core.runtime.IAdaptable info,
                         Map options)
Initializes me with the undoable operation that represents my non-EMF changes and transaction options.

Parameters:
domain - my editing domain
operation - the non-EMF changes that I record
options - my options
info - the adaptable object provided to the operation when it is executed
Method Detail

commit

public void commit()
            throws RollbackException
Appends my non-EMF change and commits.

Throws:
RollbackException

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