public class EditorInputAdapter
extends java.lang.Object
| Constructor and Description |
|---|
EditorInputAdapter() |
| Modifier and Type | Method and Description |
|---|---|
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. |
public static DiagramEditorInput adaptToDiagramEditorInput(IEditorInput otherInput)
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.otherInput - an IEditorInput editor inputDiagramEditorInput editor input if the conversion is
supported and succeeded, otherwise null.