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 DiagramEditorInputadaptToDiagramEditorInput(org.eclipse.ui.IEditorInput otherInput)Creates a newDiagramEditorInputwith a self createdTransactionalEditingDomainin case the passedIEditorInputis either aIFileEditorInputor aURIEditorInput.
-
-
-
Method Detail
-
adaptToDiagramEditorInput
public static DiagramEditorInput adaptToDiagramEditorInput(org.eclipse.ui.IEditorInput otherInput)
Creates a newDiagramEditorInputwith a self createdTransactionalEditingDomainin case the passedIEditorInputis either aIFileEditorInputor aURIEditorInput. It returns otherInput, if it is aDiagramEditorInput. The created editor input object will care about the disposal of the editing domain.- Parameters:
otherInput- anIEditorInputeditor input- Returns:
- a
DiagramEditorInputeditor input if the conversion is supported and succeeded, otherwisenull. - Since:
- 0.9
-
-