java.lang.Objectcom.ibm.jdg2e.msseditor.ui.MiniSSEditorInput
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.
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 |
public MiniSSEditorInput(java.lang.String spec)
.mss).
| Method Detail |
public boolean equals(java.lang.Object o)
true if the editor inputs are the same; false otherwise.public boolean exists()
exists in interface org.eclipse.ui.IEditorInputtrue if the editor input exists; false otherwisepublic java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptableIAdaptable.getAdapter(java.lang.Class)public java.lang.String getFactoryId()
getFactoryId in interface org.eclipse.ui.IPersistableElementIPersistableElement.getFactoryId()public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
getImageDescriptor in interface org.eclipse.ui.IEditorInputIEditorInput.getImageDescriptor()public java.lang.String getName()
getName in interface org.eclipse.ui.IEditorInputIEditorInput.getName()public org.eclipse.core.runtime.IPath getPath()
getPath in interface org.eclipse.ui.IPathEditorInputIPathEditorInput.getPath()public org.eclipse.ui.IPersistableElement getPersistable()
getPersistable in interface org.eclipse.ui.IEditorInputIEditorInput.getPersistable()public java.lang.String getToolTipText()
getToolTipText in interface org.eclipse.ui.IEditorInputIEditorInput.getToolTipText()public int hashCode()
public void saveState(org.eclipse.ui.IMemento memento)
saveState in interface org.eclipse.ui.IPersistableElementIPersistableElement.saveState(org.eclipse.ui.IMemento)