org.eclipse.graphiti.ui.editor
Class EditorInputAdapter

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

public class EditorInputAdapter
extends java.lang.Object

Since:
0.9

Constructor Summary
EditorInputAdapter()
           
 
Method Summary
static DiagramEditorInput adaptToDiagramEditorInput(IEditorInput otherInput)
          Creates a new DiagramEditorInput with a self created TransactionalEditingDomain in case the passed IEditorInput is either a IFileEditorInput or a URIEditorInput.
private static DiagramEditorInput createDiagramEditorInput(URI diagramFileUri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorInputAdapter

public EditorInputAdapter()
Method Detail

adaptToDiagramEditorInput

public static DiagramEditorInput adaptToDiagramEditorInput(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.
Since:
0.9

createDiagramEditorInput

private static DiagramEditorInput createDiagramEditorInput(URI diagramFileUri)


Copyright (c) SAP AG 2005, 2012.