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.diagram.core
Class DiagramEditingDomainFactory

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
              extended by 
org.eclipse.gmf.runtime.diagram.core.DiagramEditingDomainFactory
All Implemented Interfaces:
org.eclipse.emf.transaction.TransactionalEditingDomain.Factory

public class DiagramEditingDomainFactory
extends GMFEditingDomainFactory

Factory for TransactionalEditingDomains that are properly configured to support a GMF diagram application. This factory should be preferred over the GMFEditingDomainFactory because it attaches a listener required to update the notation model after changes to the semantic model. Also, it handles special use cases involving the DiagramEventBroker.


Nested Class Summary
protected static class DiagramEditingDomainFactory.DiagramEditingDomain
           
 
Nested classes/interfaces inherited from class org.eclipse.gmf.runtime.emf.core. GMFEditingDomainFactory
GMFEditingDomainFactory.TransactionalSyncExecHelper
 
Field Summary
 
Fields inherited from class org.eclipse.gmf.runtime.emf.core. GMFEditingDomainFactory
transactionalSyncExecHelper
 
Fields inherited from class org.eclipse.emf.workspace.WorkspaceEditingDomainFactory
INSTANCE
 
Constructor Summary
DiagramEditingDomainFactory ()
           
 
Method Summary
protected  void configure (org.eclipse.emf.transaction.TransactionalEditingDomain domain)
          Configures the specified editing domain for correct functioning in the GMF environment.
 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 diagram editing domain factory.
 
Methods inherited from class org.eclipse.gmf.runtime.emf.core. GMFEditingDomainFactory
configureResourceModificationManagement, 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
 

Constructor Detail

DiagramEditingDomainFactory

public DiagramEditingDomainFactory()
Method Detail

getInstance

public static org.eclipse.emf.workspace.WorkspaceEditingDomainFactory getInstance()
Gets the single shared instance of the GMF diagram editing domain factory.

Returns:
the editing domain factory

configure

protected void configure(org.eclipse.emf.transaction.TransactionalEditingDomain domain)
Description copied from class: GMFEditingDomainFactory
Configures the specified editing domain for correct functioning in the GMF environment.

Overrides:
configure in class GMFEditingDomainFactory
Parameters:
domain - the new editing domain

createEditingDomain

public org.eclipse.emf.transaction.TransactionalEditingDomain createEditingDomain()
Specified by:
createEditingDomain in interface org.eclipse.emf.transaction.TransactionalEditingDomain.Factory
Overrides:
createEditingDomain in class GMFEditingDomainFactory

createEditingDomain

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

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 GMFEditingDomainFactory

createEditingDomain

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

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