Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


org.eclipse.emf.workspace.impl
Class EMFOperationTransaction


java.lang.Object
  extended by 

org.eclipse.emf.transaction.impl.TransactionImpl
      extended by 

org.eclipse.emf.transaction.impl.EMFCommandTransaction
          extended by 
org.eclipse.emf.workspace.impl.EMFOperationTransaction
All Implemented Interfaces:
InternalTransaction, Transaction

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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.transaction. Transaction
Transaction.OptionMetadata
 
Field Summary
 
Fields inherited from class org.eclipse.emf.transaction.impl. TransactionImpl
ALLOW_CHANGE_PROPAGATION_BLOCKING, BLOCK_CHANGE_PROPAGATION, change, DEFAULT_UNDO_REDO_OPTIONS, notifications, OPTION_EXECUTING_COMMAND, OPTION_IS_TRIGGER_TRANSACTION
 
Fields inherited from interface org.eclipse.emf.transaction. Transaction
OPTION_IS_UNDO_REDO_TRANSACTION, OPTION_NO_NOTIFICATIONS, OPTION_NO_TRIGGERS, OPTION_NO_UNDO, OPTION_NO_VALIDATION, OPTION_UNPROTECTED, OPTION_VALIDATE_EDIT, OPTION_VALIDATE_EDIT_CONTEXT
 
Constructor Summary
EMFOperationTransaction ( Command command, InternalTransactionalEditingDomain domain, 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 org.eclipse.emf.transaction.impl. EMFCommandTransaction
getCommand
 
Methods inherited from class org.eclipse.emf.transaction.impl. TransactionImpl
abort, add, addTriggers, close, collectsNotifications, commit, endPrivileged, getChangeDescription, getDefaultOptions, getEditingDomain, getInternalDomain, getLifecycle, getNotifications, getOptions, getOwner, getParent, getRoot, getStatus, getTriggers, hasOption, isAborted, isActive, isNotificationEnabled, isReadOnly, isRollingBack, isTriggerEnabled, isUndoEnabled, isUnprotected, isValidationEnabled, pause, resume, rollback, setParent, setStatus, start, startPrivileged, toString, validate, yield
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EMFOperationTransaction

public EMFOperationTransaction(
Command command,
                               
InternalTransactionalEditingDomain domain,
                               
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, 2007 IBM Corporation and others.
All Rights Reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire