java.lang.Object | +--org.eclipse.ui.part.WorkbenchPart | +--org.eclipse.ui.part.EditorPart | +--com.ibm.lab.soln.editor.ui.MiniSpreadsheetEditor
Field Summary |
Fields inherited from interface org.eclipse.ui.IEditorPart |
PROP_DIRTY, PROP_INPUT |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
Constructor Summary | |
MiniSpreadsheetEditor()
|
Method Summary | |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
|
void |
dispose()
|
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
|
void |
doSaveAs()
|
int |
getDefaultAlignment()
|
MiniSpreadsheet |
getMiniSpreadsheet()
Returns the editor's model, the miniSpreadsheet. |
void |
gotoMarker(org.eclipse.core.resources.IMarker marker)
|
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput editorInput)
|
protected void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IStorageEditorInput editorInput)
|
void |
initializeTableLayout(org.eclipse.swt.widgets.Composite parent)
|
boolean |
isDirty()
|
boolean |
isSaveAsAllowed()
|
void |
resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
This editor is a resource change listener in order to detect "special" situations. |
void |
rowsChanged(MiniSpreadsheet miniSpreadsheet)
Notification of a rows modification; the change is significant enough that a delta is not included in the notification, i.e., the receiver should assume that all rows may have changed. |
void |
setAlignment(int alignment)
Set alignment for all the columns. |
protected void |
setContents(org.eclipse.ui.IStorageEditorInput sei)
|
void |
setFocus()
Passing the focus request to the viewer's control. |
protected void |
setIsDirty(boolean isDirty)
|
void |
valueChanged(MiniSpreadsheet miniSpreadsheet,
int row,
int column,
java.lang.String newValue)
Notification of a cell modification. |
Methods inherited from class org.eclipse.ui.part.EditorPart |
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setInput |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPropertyListener, firePropertyChange, getAdapter, getConfigurationElement, getDefaultImage, getSite, getTitle, getTitleImage, removePropertyListener, setInitializationData, setSite, setTitle, setTitleImage, setTitleToolTip |
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, getSite, getTitle, getTitleImage, removePropertyListener |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
Constructor Detail |
public MiniSpreadsheetEditor()
Method Detail |
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
IWorkbenchPart.createPartControl(Composite)
public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.part.WorkbenchPart
IWorkbenchPart.dispose()
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
doSave
in interface org.eclipse.ui.IEditorPart
doSave
in class org.eclipse.ui.part.EditorPart
IEditorPart.doSave(IProgressMonitor)
public void doSaveAs()
doSaveAs
in interface org.eclipse.ui.IEditorPart
doSaveAs
in class org.eclipse.ui.part.EditorPart
IEditorPart.doSaveAs()
public int getDefaultAlignment()
public MiniSpreadsheet getMiniSpreadsheet()
public void gotoMarker(org.eclipse.core.resources.IMarker marker)
gotoMarker
in interface org.eclipse.ui.IEditorPart
gotoMarker
in class org.eclipse.ui.part.EditorPart
IEditorPart.gotoMarker(IMarker)
public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput editorInput) throws org.eclipse.ui.PartInitException
init
in interface org.eclipse.ui.IEditorPart
init
in class org.eclipse.ui.part.EditorPart
org.eclipse.ui.PartInitException
IEditorPart.init(IEditorSite, IEditorInput)
protected void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IStorageEditorInput editorInput) throws org.eclipse.ui.PartInitException
org.eclipse.ui.PartInitException
public void initializeTableLayout(org.eclipse.swt.widgets.Composite parent)
public boolean isDirty()
isDirty
in interface org.eclipse.ui.IEditorPart
isDirty
in class org.eclipse.ui.part.EditorPart
IEditorPart.isDirty()
public boolean isSaveAsAllowed()
isSaveAsAllowed
in interface org.eclipse.ui.IEditorPart
isSaveAsAllowed
in class org.eclipse.ui.part.EditorPart
IEditorPart.isSaveAsAllowed()
public void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
resourceChanged
in interface org.eclipse.core.resources.IResourceChangeListener
IResourceChangeListener.resourceChanged(IResourceChangeEvent)
public void rowsChanged(MiniSpreadsheet miniSpreadsheet)
IMiniSpreadsheetListener
rowsChanged
in interface IMiniSpreadsheetListener
IMiniSpreadsheetListener.rowsChanged(MiniSpreadsheet)
public void setAlignment(int alignment)
alignment
- SWT.LEFT, SWT.RIGHT, SWT.CENTER.protected void setContents(org.eclipse.ui.IStorageEditorInput sei) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
protected void setIsDirty(boolean isDirty)
public void valueChanged(MiniSpreadsheet miniSpreadsheet, int row, int column, java.lang.String newValue)
IMiniSpreadsheetListener
valueChanged
in interface IMiniSpreadsheetListener
miniSpreadsheet
- changed MiniSpreadsheet
row
- row index (0-based)column
- column index (0-based)newValue
- new string value of changed cellIMiniSpreadsheetListener.valueChanged(MiniSpreadsheet, int, int, String)