org.eclipse.graphiti.ui.editor
Class DiagramEditorFactory
java.lang.Object
org.eclipse.graphiti.ui.editor.DiagramEditorFactory
public class DiagramEditorFactory
- extends Object
The Class DiagramEditorFactory.
A factory for creating DiagramEditorInternal objects.
- See Also:
DiagramEditorFactory},
DiagramEditorInput}
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiagramEditorFactory
public DiagramEditorFactory()
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.