pl.edu.agh.cast.backward.resources
Class ModelEditorInput

java.lang.Object
  extended by pl.edu.agh.cast.backward.resources.FileEditorInput
      extended by pl.edu.agh.cast.backward.resources.ModelEditorInput
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput, org.eclipse.ui.IPathEditorInput

public class ModelEditorInput
extends FileEditorInput

IEditorInput providing CAST data model and diagram IFile.

Author:
AGH CAST Team

Constructor Summary
ModelEditorInput(Collection<IDataSet> model, org.eclipse.core.resources.IFile file)
          Creates new instance of model editor input.
 
Method Summary
 boolean equals(Object obj)
          Two ModelEditorInputs are equal if their files are equal.
 Collection<IDataSet> getModel()
           
 int hashCode()
          
 
Methods inherited from class pl.edu.agh.cast.backward.resources.FileEditorInput
exists, getAdapter, getFile, getImageDescriptor, getName, getPath, getPersistable, getToolTipText, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelEditorInput

public ModelEditorInput(Collection<IDataSet> model,
                        org.eclipse.core.resources.IFile file)
Creates new instance of model editor input.

Parameters:
model - data model
file - diagram file
Method Detail

getModel

public Collection<IDataSet> getModel()

equals

public boolean equals(Object obj)
Two ModelEditorInputs are equal if their files are equal. That basically means that FileEditorInput's equals should be used.

Overrides:
equals in class FileEditorInput
See Also:
FileEditorInput.equals(java.lang.Object)

hashCode

public int hashCode()

Overrides:
hashCode in class FileEditorInput
See Also:
FileEditorInput.hashCode()


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