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

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.transaction.impl
Class TransactionalEditingDomainImpl.RegistryImpl

java.lang.Object
  extended by 
org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.RegistryImpl
All Implemented Interfaces:
TransactionalEditingDomain.Registry
Enclosing class:
TransactionalEditingDomainImpl

public static final class TransactionalEditingDomainImpl.RegistryImpl
extends Object
implements TransactionalEditingDomain.Registry

Implementation of the global editing domain registry.

This class is not intended to be used by clients.


Field Summary
 
Fields inherited from interface org.eclipse.emf.transaction. TransactionalEditingDomain.Registry
INSTANCE
 
Constructor Summary
TransactionalEditingDomainImpl.RegistryImpl ()
           
 
Method Summary
 void add ( String id, TransactionalEditingDomain domain)
          Registers an editing domain under the specified ID.
  TransactionalEditingDomain getEditingDomain ( String id)
          Obtains the editing domain having the specified ID.
  TransactionalEditingDomain remove ( String id)
          Removes the editing domain matching the specified ID from the registry.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionalEditingDomainImpl.RegistryImpl

public TransactionalEditingDomainImpl.RegistryImpl()
Method Detail

getEditingDomain

public 
TransactionalEditingDomain getEditingDomain(
String id)
Description copied from interface: TransactionalEditingDomain.Registry
Obtains the editing domain having the specified ID. if the specified domain is registered on the extension point but has not yet been created, then it is first created (using the designated factory) and then returned.

Specified by:
getEditingDomain in interface TransactionalEditingDomain.Registry
Parameters:
id - the ID to request
Returns:
the matching editing domain, or null if it is not found and it could not be created from the extension point

add

public void add(
String id,
                
TransactionalEditingDomain domain)
Description copied from interface: TransactionalEditingDomain.Registry
Registers an editing domain under the specified ID. This will displace any domain previously registered under this ID. Note that it is not permitted to replace an editing domain that was registered statically on the org.eclipse.emf.transaction.editingDomains extension point.

Specified by:
add in interface TransactionalEditingDomain.Registry
Parameters:
id - the domain ID to register
domain - the domain to register. If its current ID is not the registered ID, then it is updated to correspond

remove

public 
TransactionalEditingDomain remove(
String id)
Description copied from interface: TransactionalEditingDomain.Registry
Removes the editing domain matching the specified ID from the registry. Note that it is not permitted to remove an ID that was registered statically on the org.eclipse.emf.transaction.editingDomains extension point.

Specified by:
remove in interface TransactionalEditingDomain.Registry
Parameters:
id - the domain ID to deregister
Returns:
the editing domain previously registered under this ID, or null if none was registered

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