org.eclipse.gmf.runtime.emf.core
Class GMFEditingDomainFactory
java.lang.Object
org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.FactoryImpl
org.eclipse.emf.workspace.WorkspaceEditingDomainFactory
org.eclipse.gmf.runtime.emf.core.GMFEditingDomainFactory
- All Implemented Interfaces:
- org.eclipse.emf.transaction.TransactionalEditingDomain.Factory
- Direct Known Subclasses:
- DiagramEditingDomainFactory
- public class GMFEditingDomainFactory
- extends org.eclipse.emf.workspace.WorkspaceEditingDomainFactory
Factory for TransactionalEditingDomains that are properly configured
to support a GMF application. This factory should be preferred over the
WorkspaceEditingDomainFactory because it
attaches adapters and sets up other other properties of the resource set
and/or editing domain on the client's behalf.
| Fields inherited from class org.eclipse.emf.workspace.WorkspaceEditingDomainFactory |
INSTANCE |
| 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 |
GMFEditingDomainFactory
public GMFEditingDomainFactory()
getInstance
public static org.eclipse.emf.workspace.WorkspaceEditingDomainFactory getInstance()
- Gets the single shared instance of the GMF editing domain factory.
- Returns:
- the editing domain factory
createEditingDomain
public org.eclipse.emf.transaction.TransactionalEditingDomain createEditingDomain()
createEditingDomain
public org.eclipse.emf.transaction.TransactionalEditingDomain createEditingDomain(IOperationHistory history)
createEditingDomain
public org.eclipse.emf.transaction.TransactionalEditingDomain createEditingDomain(ResourceSet rset,
IOperationHistory history)
createEditingDomain
public org.eclipse.emf.transaction.TransactionalEditingDomain createEditingDomain(ResourceSet rset)
configure
protected void configure(org.eclipse.emf.transaction.TransactionalEditingDomain domain)
- Configures the specified editing domain for correct functioning in the
GMF environment.
- Parameters:
domain - the new editing domain
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.