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

  




 

 


org.eclipse.emf.workspace
Class WorkspaceEditingDomainFactory


java.lang.Object
  extended by 

org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.FactoryImpl
      extended by 
org.eclipse.emf.workspace.WorkspaceEditingDomainFactory
All Implemented Interfaces:
TransactionalEditingDomain.Factory

public class WorkspaceEditingDomainFactory
extends TransactionalEditingDomainImpl.FactoryImpl

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

INSTANCE

public static final 
WorkspaceEditingDomainFactory INSTANCE
The single shared instance of the workbench editing domain factory.

Constructor Detail

WorkspaceEditingDomainFactory

public WorkspaceEditingDomainFactory()
Initializes me.

Method Detail

createEditingDomain

public 
TransactionalEditingDomain createEditingDomain()
Creates a new editing domain using a default resource set implementation and the Workbench's shared operation history.

Specified by:
createEditingDomain in interface TransactionalEditingDomain.Factory
Overrides:
createEditingDomain in class TransactionalEditingDomainImpl.FactoryImpl
Returns:
the new editing domain

createEditingDomain

public 
TransactionalEditingDomain createEditingDomain(
ResourceSet rset)
Creates a new editing domain using the given resource set and the Workbench's shared operation history.

Specified by:
createEditingDomain in interface TransactionalEditingDomain.Factory
Overrides:
createEditingDomain in class TransactionalEditingDomainImpl.FactoryImpl
Parameters:
rset - the resource set on which to create the editing domain
Returns:
the new editing domain

createEditingDomain

public 
TransactionalEditingDomain createEditingDomain(
IOperationHistory history)
Creates a new editing domain on a default resource set implementation and the specified operation history.

Parameters:
history - the operation history to which I delegate the command stack
Returns:
the new editing domain

createEditingDomain

public 
TransactionalEditingDomain createEditingDomain(
ResourceSet rset,
                                                      
IOperationHistory history)
Creates a new editing domain on the given resource set and the specified operation history.

Parameters:
rset - the resource set to use
history - the operation history to which I delegate the command stack
Returns:
the new editing domain

getResourceUndoContextPolicy

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. May be overridden by clients to supply a non-default implementation.

Returns:
the resource undo-context policy
Since:
1.3

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