pl.edu.agh.cast.editor.input
Class DiagramEditorInput<M extends IPresentationDataSet<?>,V extends IVisualDataSet<?,M>,T extends IDiagram<M,V>>

java.lang.Object
  extended by pl.edu.agh.cast.editor.input.DiagramEditorInput<M,V,T>
Type Parameters:
M - presentation data set which is base of diagram
V - visual data set which is base of diagram
T - input diagram for editor
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput, IDiagramEditorInput<M,V,T>

public class DiagramEditorInput<M extends IPresentationDataSet<?>,V extends IVisualDataSet<?,M>,T extends IDiagram<M,V>>
extends Object
implements IDiagramEditorInput<M,V,T>

Default implementation of IDiagramEditorInput - see for more details.

Author:
AGH CAST Team

Constructor Summary
DiagramEditorInput(T diagram)
          Constructor.
 
Method Summary
 boolean exists()
          
 Object getAdapter(Class adapter)
          
 T getDiagram()
          Gets diagram for an editor.
 org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
          
 String getName()
          
 org.eclipse.ui.IPersistableElement getPersistable()
          
 String getToolTipText()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagramEditorInput

public DiagramEditorInput(T diagram)
Constructor.

Parameters:
diagram - input diagram
Method Detail

getDiagram

public T getDiagram()
Gets diagram for an editor.

Specified by:
getDiagram in interface IDiagramEditorInput<M extends IPresentationDataSet<?>,V extends IVisualDataSet<?,M>,T extends IDiagram<M,V>>
Returns:
diagram for an editor
See Also:
IDiagramEditorInput.getDiagram()

exists

public boolean exists()

Specified by:
exists in interface org.eclipse.ui.IEditorInput
See Also:
IEditorInput.exists()

getImageDescriptor

public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()

Specified by:
getImageDescriptor in interface org.eclipse.ui.IEditorInput
See Also:
IEditorInput.getImageDescriptor()

getName

public String getName()

Specified by:
getName in interface org.eclipse.ui.IEditorInput
See Also:
IEditorInput.getName()

getPersistable

public org.eclipse.ui.IPersistableElement getPersistable()

Specified by:
getPersistable in interface org.eclipse.ui.IEditorInput
See Also:
IEditorInput.getPersistable()

getToolTipText

public String getToolTipText()

Specified by:
getToolTipText in interface org.eclipse.ui.IEditorInput
See Also:
IEditorInput.getToolTipText()

getAdapter

public Object getAdapter(Class adapter)

Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable
See Also:
IAdaptable.getAdapter(java.lang.Class)


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.