org.eclipse.graphiti.ui.editor
Class DiagramEditorFactory

java.lang.Object
  extended by org.eclipse.graphiti.ui.editor.DiagramEditorFactory

public class DiagramEditorFactory
extends java.lang.Object

The Class DiagramEditorFactory. A factory for creating DiagramEditorInternal objects.

See Also:
DiagramEditorInputBase}, DiagramEditorFactory}, DiagramEditorInput}

Nested Class Summary
static class DiagramEditorFactory.DiagramEditorMatchingStrategy
          For internal use only.
 
Constructor Summary
DiagramEditorFactory()
           
 
Method Summary
 DiagramEditorInput createEditorInput(IEditorInput otherInput)
          Creates a new DiagramEditorInput with a self created TransactionalEditingDomain or returns otherInput, if it is a DiagramEditorInput.
 IAdaptable createElement(IMemento memento)
           
static TransactionalEditingDomain createResourceSetAndEditingDomain()
          Creates a TransactionalEditingDomain with a ResourceSet resource set and a IWorkspaceCommandStack command stack.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagramEditorFactory

public DiagramEditorFactory()
Method Detail

createEditorInput

public DiagramEditorInput createEditorInput(IEditorInput otherInput)
Creates a new DiagramEditorInput with a self created TransactionalEditingDomain or returns otherInput, if it is a DiagramEditorInput. The created editor input object will care about the disposal of the editing domain.

Parameters:
otherInput - an IEditorInput editor input
Returns:
a DiagramEditorInput editor input or a DiagramEditorInputDisposingTED

createElement

public IAdaptable createElement(IMemento memento)

createResourceSetAndEditingDomain

public static TransactionalEditingDomain createResourceSetAndEditingDomain()
Creates a TransactionalEditingDomain with a ResourceSet resource set and a IWorkspaceCommandStack command stack.

Returns:
a TransactionalEditingDomain editing domain


Copyright (c) SAP AG 2005, 2010.