Package org.eclipse.graphiti.ui.editor
Class EditorInputAdapter
java.lang.Object
org.eclipse.graphiti.ui.editor.EditorInputAdapter
- Since:
- 0.9
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DiagramEditorInputadaptToDiagramEditorInput(org.eclipse.ui.IEditorInput otherInput) Creates a newDiagramEditorInputwith a self createdTransactionalEditingDomainin case the passedIEditorInputis either aIFileEditorInputor aURIEditorInput.
-
Constructor Details
-
EditorInputAdapter
public EditorInputAdapter()
-
-
Method Details
-
adaptToDiagramEditorInput
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
-