pl.edu.agh.cast.editor.input
Class ModelEditorInput<M extends IDataSet<?>>

java.lang.Object
  extended by pl.edu.agh.cast.editor.input.ModelEditorInput<M>
Type Parameters:
M - data set
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput, IModelEditorInput<M>
Direct Known Subclasses:
TableEditorInput

public class ModelEditorInput<M extends IDataSet<?>>
extends Object
implements IModelEditorInput<M>

Default implementation of IModelEditorInput - see for more details.

Author:
AGH CAST Team

Constructor Summary
ModelEditorInput(M dataSet)
          Constructor.
 
Method Summary
 boolean exists()
          
 Object getAdapter(Class adapter)
          
 M getDataSet()
          Gets data set which is a diagram model.
 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

ModelEditorInput

public ModelEditorInput(M dataSet)
Constructor.

Parameters:
dataSet - data set which is base for a diagram
Method Detail

getDataSet

public M getDataSet()
Gets data set which is a diagram model.

Specified by:
getDataSet in interface IModelEditorInput<M extends IDataSet<?>>
Returns:
visual data set
See Also:
IModelEditorInput.getDataSet()

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.