Package org.eclipse.graphiti.ui.editor
Class EditorInputAdapter
java.lang.Object
org.eclipse.graphiti.ui.editor.EditorInputAdapter
- Since:
- 0.9
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DiagramEditorInput
adaptToDiagramEditorInput
(org.eclipse.ui.IEditorInput otherInput) Creates a newDiagramEditorInput
with a self createdTransactionalEditingDomain
in case the passedIEditorInput
is either aIFileEditorInput
or aURIEditorInput
.
-
Constructor Details
-
EditorInputAdapter
public EditorInputAdapter()
-
-
Method Details
-
adaptToDiagramEditorInput
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
-