com.ibm.jdg2e.msseditor.ui
Class MiniSSEditorInput

java.lang.Object
  extended bycom.ibm.jdg2e.msseditor.ui.MiniSSEditorInput
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput, org.eclipse.ui.IPathEditorInput, org.eclipse.ui.IPersistableElement

public class MiniSSEditorInput
extends java.lang.Object
implements org.eclipse.ui.IPathEditorInput, org.eclipse.ui.IPersistableElement

Defines a file system-based editor input for mini-spreadsheet files (.mss). The MiniSSResourceEditor gets data from a file referenced from the local workspace directory using an IDE-specific interface like IFileEditorInput. The RCP implementation of this editor, MiniSSFileEditor, uses this editor input class to represent Eclipse's reference to the mini-spreadsheet's data, an implementer of the IEditorInput interface. This class' principle responsibility boils down to persisting a reference to the input file's path.

See Also:
MiniSSFileEditor, IPathEditorInput

Constructor Summary
MiniSSEditorInput(java.lang.String spec)
          Return a new instance based on the given file specification, i.e., a fully qualified path to the mini-spreadsheet data file (.mss).
 
Method Summary
 boolean equals(java.lang.Object o)
          Are these two referring to the same input?
 boolean exists()
          Determine if this is still a valid destination of the "last edit position" indicator.
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 java.lang.String getFactoryId()
           
 org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
           
 java.lang.String getName()
           
 org.eclipse.core.runtime.IPath getPath()
           
 org.eclipse.ui.IPersistableElement getPersistable()
           
 java.lang.String getToolTipText()
           
 int hashCode()
           
 void saveState(org.eclipse.ui.IMemento memento)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiniSSEditorInput

public MiniSSEditorInput(java.lang.String spec)
Return a new instance based on the given file specification, i.e., a fully qualified path to the mini-spreadsheet data file (.mss).

Method Detail

equals

public boolean equals(java.lang.Object o)
Are these two referring to the same input?

Returns:
true if the editor inputs are the same; false otherwise.

exists

public boolean exists()
Determine if this is still a valid destination of the "last edit position" indicator.

Specified by:
exists in interface org.eclipse.ui.IEditorInput
Returns:
true if the editor input exists; false otherwise

getAdapter

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

getFactoryId

public java.lang.String getFactoryId()
Specified by:
getFactoryId in interface org.eclipse.ui.IPersistableElement
See Also:
IPersistableElement.getFactoryId()

getImageDescriptor

public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
Specified by:
getImageDescriptor in interface org.eclipse.ui.IEditorInput
See Also:
IEditorInput.getImageDescriptor()

getName

public java.lang.String getName()
Specified by:
getName in interface org.eclipse.ui.IEditorInput
See Also:
IEditorInput.getName()

getPath

public org.eclipse.core.runtime.IPath getPath()
Specified by:
getPath in interface org.eclipse.ui.IPathEditorInput
See Also:
IPathEditorInput.getPath()

getPersistable

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

getToolTipText

public java.lang.String getToolTipText()
Specified by:
getToolTipText in interface org.eclipse.ui.IEditorInput
See Also:
IEditorInput.getToolTipText()

hashCode

public int hashCode()

saveState

public void saveState(org.eclipse.ui.IMemento memento)
Specified by:
saveState in interface org.eclipse.ui.IPersistableElement
See Also:
IPersistableElement.saveState(org.eclipse.ui.IMemento)