org.eclipse.gmf.runtime.lite.parts
Class DiagramEditorInput

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by 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.


Constructor Summary
DiagramEditorInput(org.eclipse.gmf.runtime.notation.Diagram diagram)
           
 
Method Summary
 boolean equals(Object obj)
           
 boolean exists()
           
 Object getAdapter(Class adapter)
           
 org.eclipse.gmf.runtime.notation.Diagram getDiagram()
           
 org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
           
 String getName()
           
 org.eclipse.ui.IPersistableElement getPersistable()
           
 String getToolTipText()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagramEditorInput

public DiagramEditorInput(org.eclipse.gmf.runtime.notation.Diagram diagram)
Method Detail

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.