java.lang.Objectorg.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
com.ibm.jdg2e.msseditor.ui.AbstractMiniSSEditor
com.ibm.jdg2e.msseditor.ui.MiniSSFileEditor
Defines a sample "mini-spreadsheet" editor that demonstrates how to create an editor whose input is based on files directly from the file system (not the the workspace).
The mini-spreadsheet editor defines its own toolbar button, main menu bar
pull-down labeled "Calculations," and context menu. It will also allow others
to extend it with their own actions; for example, the
com.ibm.jdg2e.msseditor.extras plug-in contributes toolbar
buttons, menu choices, and editor pop-up menu choices (denoted in the UI with
an asterisk).
| Field Summary |
| Fields inherited from class com.ibm.jdg2e.msseditor.ui.AbstractMiniSSEditor |
miniSpreadsheet |
| Fields inherited from interface org.eclipse.ui.IEditorPart |
PROP_DIRTY, PROP_INPUT |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
| Constructor Summary | |
MiniSSFileEditor()
|
|
| Method Summary | |
org.eclipse.ui.IEditorInput |
createNewInput(java.lang.String message)
Create a new valid IEditorInput for this concrete
implementation, an editor input of java.io.File. |
static void |
openDemo()
For demonstration purposes, open a sample mini-spreadsheet in the currently active window. |
boolean |
saveContents()
Persist the mini-spreadsheet as a file. |
void |
setContents(org.eclipse.ui.IEditorInput editorInput)
Set the mini-spreadsheet's contents using the given IEditorInput,
knowing that it has already been validated. |
org.eclipse.ui.IEditorInput |
validateEditorInput(org.eclipse.ui.IEditorInput editorInput)
Return the given editor input if it valid without attempting to adapt it. |
| Methods inherited from class com.ibm.jdg2e.msseditor.ui.AbstractMiniSSEditor |
appendRow, createPartControl, doSave, doSaveAs, getDefaultAlignment, getMiniSpreadsheet, init, isDirty, isSaveAsAllowed, rowsChanged, selectAll, selectionChanged, setAlignment, setFocus, setIsDirty, valueChanged |
| Methods inherited from class org.eclipse.ui.part.EditorPart |
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPropertyListener, dispose, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getPartName, getSite, getTitle, getTitleImage, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
addPropertyListener, dispose, getSite, getTitle, getTitleImage, removePropertyListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
| Constructor Detail |
public MiniSSFileEditor()
| Method Detail |
public org.eclipse.ui.IEditorInput createNewInput(java.lang.String message)
throws org.eclipse.core.runtime.CoreException
IEditorInput for this concrete
implementation, an editor input of java.io.File.
createNewInput in class AbstractMiniSSEditororg.eclipse.core.runtime.CoreExceptionpublic static void openDemo()
public boolean saveContents()
throws org.eclipse.core.runtime.CoreException
saveContents in class AbstractMiniSSEditororg.eclipse.core.runtime.CoreException
public void setContents(org.eclipse.ui.IEditorInput editorInput)
throws org.eclipse.core.runtime.CoreException
IEditorInput,
knowing that it has already been validated.
setContents in class AbstractMiniSSEditororg.eclipse.core.runtime.CoreExceptionvalidateEditorInput(IEditorInput)public org.eclipse.ui.IEditorInput validateEditorInput(org.eclipse.ui.IEditorInput editorInput)
validateEditorInput in class AbstractMiniSSEditor