org.eclipse.gmf.runtime.lite.parts
Class DiagramEditorInput
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.gmf.runtime.lite.parts.DiagramEditorInput
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput
public class DiagramEditorInput
- extends org.eclipse.core.runtime.PlatformObject
- implements org.eclipse.ui.IEditorInput
A simple implementation of an IEditorInput
that may be used to open a diagram with the editing domain
specified by the diagram instance.
DiagramEditorInput
public DiagramEditorInput(org.eclipse.gmf.runtime.notation.Diagram diagram)
getDiagram
public org.eclipse.gmf.runtime.notation.Diagram getDiagram()
exists
public boolean exists()
- Specified by:
exists
in interface org.eclipse.ui.IEditorInput
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
getImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
- Specified by:
getImageDescriptor
in interface org.eclipse.ui.IEditorInput
getName
public String getName()
- Specified by:
getName
in interface org.eclipse.ui.IEditorInput
getPersistable
public org.eclipse.ui.IPersistableElement getPersistable()
- Specified by:
getPersistable
in interface org.eclipse.ui.IEditorInput
getToolTipText
public String getToolTipText()
- Specified by:
getToolTipText
in interface org.eclipse.ui.IEditorInput
getAdapter
public Object getAdapter(Class adapter)
- Specified by:
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
- Overrides:
getAdapter
in class org.eclipse.core.runtime.PlatformObject
Copyright © 2012. All Rights Reserved.