Package org.eclipse.graphiti.ui.editor
Class EditorInputAdapter
- java.lang.Object
-
- org.eclipse.graphiti.ui.editor.EditorInputAdapter
-
public class EditorInputAdapter extends java.lang.Object
- Since:
- 0.9
-
-
Constructor Summary
Constructors Constructor Description EditorInputAdapter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DiagramEditorInput
adaptToDiagramEditorInput(org.eclipse.ui.IEditorInput otherInput)
Creates a newDiagramEditorInput
with a self createdTransactionalEditingDomain
in case the passedIEditorInput
is either aIFileEditorInput
or aURIEditorInput
.
-
-
-
Method Detail
-
adaptToDiagramEditorInput
public static DiagramEditorInput adaptToDiagramEditorInput(org.eclipse.ui.IEditorInput otherInput)
Creates a newDiagramEditorInput
with a self createdTransactionalEditingDomain
in case the passedIEditorInput
is either aIFileEditorInput
or aURIEditorInput
. It returns otherInput, if it is aDiagramEditorInput
. The created editor input object will care about the disposal of the editing domain.- Parameters:
otherInput
- anIEditorInput
editor input- Returns:
- a
DiagramEditorInput
editor input if the conversion is supported and succeeded, otherwisenull
. - Since:
- 0.9
-
-