|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.FactoryImpl
org.eclipse.emf.workspace.WorkspaceEditingDomainFactory
public class WorkspaceEditingDomainFactory
Factory for creating transactional editing domains that delegate command
execution, undo, and redo to an IOperationHistory.
Since the 1.3 release, the determination of how ResourceUndoContexts
are attached to undoable operations is
customizable using the new
IResourceUndoContextPolicy API.
| Field Summary | |
|---|---|
static WorkspaceEditingDomainFactory |
INSTANCE
The single shared instance of the workbench editing domain factory. |
| Constructor Summary | |
|---|---|
WorkspaceEditingDomainFactory()
Initializes me. |
|
| Method Summary | |
|---|---|
TransactionalEditingDomain |
createEditingDomain()
Creates a new editing domain using a default resource set implementation and the Workbench's shared operation history. |
TransactionalEditingDomain |
createEditingDomain(IOperationHistory history)
Creates a new editing domain on a default resource set implementation and the specified operation history. |
TransactionalEditingDomain |
createEditingDomain(ResourceSet rset)
Creates a new editing domain using the given resource set and the Workbench's shared operation history. |
TransactionalEditingDomain |
createEditingDomain(ResourceSet rset,
IOperationHistory history)
Creates a new editing domain on the given resource set and the specified operation history. |
protected IResourceUndoContextPolicy |
getResourceUndoContextPolicy()
Obtains a resource undo-context policy to apply to the editing domain, to determine how to attach ResourceUndoContexts to operations in the
associated history. |
| Methods inherited from class org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.FactoryImpl |
|---|
getEditingDomain, mapResourceSet, unmapResourceSet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final WorkspaceEditingDomainFactory INSTANCE
| Constructor Detail |
|---|
public WorkspaceEditingDomainFactory()
| Method Detail |
|---|
public TransactionalEditingDomain createEditingDomain()
createEditingDomain in interface TransactionalEditingDomain.FactorycreateEditingDomain in class TransactionalEditingDomainImpl.FactoryImplpublic TransactionalEditingDomain createEditingDomain(ResourceSet rset)
createEditingDomain in interface TransactionalEditingDomain.FactorycreateEditingDomain in class TransactionalEditingDomainImpl.FactoryImplrset - the resource set on which to create the editing domain
public TransactionalEditingDomain createEditingDomain(IOperationHistory history)
history - the operation history to which I delegate the command stack
public TransactionalEditingDomain createEditingDomain(ResourceSet rset,
IOperationHistory history)
rset - the resource set to usehistory - the operation history to which I delegate the command stack
protected IResourceUndoContextPolicy getResourceUndoContextPolicy()
ResourceUndoContexts to operations in the
associated history. May be overridden by clients to supply a non-default
implementation.
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||