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

  




 

 

Runtime

org.eclipse.gmf.runtime.emf.core
Class GMFEditingDomainFactory

java.lang.Object
  extended by org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.FactoryImpl
      extended by org.eclipse.emf.workspace.WorkspaceEditingDomainFactory
          extended by 
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.


Nested Class Summary
static class GMFEditingDomainFactory.TransactionalSyncExecHelper
          A helper that knows about the specific editing domain.
 
Field Summary
static  GMFEditingDomainFactory.TransactionalSyncExecHelper transactionalSyncExecHelper
           
 
Fields inherited from class org.eclipse.emf.workspace.WorkspaceEditingDomainFactory
INSTANCE
 
Constructor Summary
GMFEditingDomainFactory ()
           
 
Method Summary
protected  void configure (org.eclipse.emf.transaction.TransactionalEditingDomain domain)
          Configures the specified editing domain for correct functioning in the GMF environment.
protected  void configureResourceModificationManagement (org.eclipse.emf.transaction.TransactionalEditingDomain domain)
          Configures domain so that the modified state of resources in the domain is managed as operations are executed, undone and redone on the operation history.
 org.eclipse.emf.transaction.TransactionalEditingDomain createEditingDomain ()
           
 org.eclipse.emf.transaction.TransactionalEditingDomain createEditingDomain ( IOperationHistory history)
           
 org.eclipse.emf.transaction.TransactionalEditingDomain createEditingDomain (org.eclipse.emf.ecore.resource.ResourceSet rset)
           
 org.eclipse.emf.transaction.TransactionalEditingDomain createEditingDomain (org.eclipse.emf.ecore.resource.ResourceSet rset, IOperationHistory history)
           
static org.eclipse.emf.workspace.WorkspaceEditingDomainFactory getInstance ()
          Gets the single shared instance of the GMF editing domain factory.
protected  org.eclipse.emf.workspace.IResourceUndoContextPolicy getResourceUndoContextPolicy ()
           
 
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

transactionalSyncExecHelper

public static 
GMFEditingDomainFactory.TransactionalSyncExecHelper transactionalSyncExecHelper
Constructor Detail

GMFEditingDomainFactory

public GMFEditingDomainFactory()
Method Detail

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()
Specified by:
createEditingDomain in interface org.eclipse.emf.transaction.TransactionalEditingDomain.Factory
Overrides:
createEditingDomain in class org.eclipse.emf.workspace.WorkspaceEditingDomainFactory

createEditingDomain

public org.eclipse.emf.transaction.TransactionalEditingDomain createEditingDomain(
IOperationHistory history)
Overrides:
createEditingDomain in class org.eclipse.emf.workspace.WorkspaceEditingDomainFactory

createEditingDomain

public org.eclipse.emf.transaction.TransactionalEditingDomain createEditingDomain(org.eclipse.emf.ecore.resource.ResourceSet rset,
                                                                                  
IOperationHistory history)
Overrides:
createEditingDomain in class org.eclipse.emf.workspace.WorkspaceEditingDomainFactory

createEditingDomain

public org.eclipse.emf.transaction.TransactionalEditingDomain createEditingDomain(org.eclipse.emf.ecore.resource.ResourceSet rset)
Specified by:
createEditingDomain in interface org.eclipse.emf.transaction.TransactionalEditingDomain.Factory
Overrides:
createEditingDomain in class org.eclipse.emf.workspace.WorkspaceEditingDomainFactory

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

configureResourceModificationManagement

protected void configureResourceModificationManagement(org.eclipse.emf.transaction.TransactionalEditingDomain domain)
Configures domain so that the modified state of resources in the domain is managed as operations are executed, undone and redone on the operation history.

Parameters:
domain - the editing domain to be configured
Since:
1.2

getResourceUndoContextPolicy

protected org.eclipse.emf.workspace.IResourceUndoContextPolicy getResourceUndoContextPolicy()
Overrides:
getResourceUndoContextPolicy in class org.eclipse.emf.workspace.WorkspaceEditingDomainFactory

Runtime

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.


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