org.eclipse.graphiti.ui.editor
Class DiagramEditorFactory

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

public class DiagramEditorFactory
extends Object

The Class DiagramEditorFactory. A factory for creating DiagramEditorInternal objects.

See Also:
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 in case the passed IEditorInput is either a IFileEditorInput or a URIEditorInput.
 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 in case the passed IEditorInput is either a IFileEditorInput or a URIEditorInput. It 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 if the conversion is supported and succeeded, otherwise null.

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.