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.IWorkbenchPartcreatePartControl in class org.eclipse.ui.part.WorkbenchPartIWorkbenchPart.createPartControl(Composite)public void dispose()
dispose in interface org.eclipse.ui.IWorkbenchPartdispose in class org.eclipse.ui.part.WorkbenchPartIWorkbenchPart.dispose()public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
doSave in interface org.eclipse.ui.IEditorPartdoSave in class org.eclipse.ui.part.EditorPartIEditorPart.doSave(IProgressMonitor)public void doSaveAs()
doSaveAs in interface org.eclipse.ui.IEditorPartdoSaveAs in class org.eclipse.ui.part.EditorPartIEditorPart.doSaveAs()public int getDefaultAlignment()
public MiniSpreadsheet getMiniSpreadsheet()
public void gotoMarker(org.eclipse.core.resources.IMarker marker)
gotoMarker in interface org.eclipse.ui.IEditorPartgotoMarker in class org.eclipse.ui.part.EditorPartIEditorPart.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.IEditorPartinit in class org.eclipse.ui.part.EditorPartorg.eclipse.ui.PartInitExceptionIEditorPart.init(IEditorSite, IEditorInput)
protected void init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IStorageEditorInput editorInput)
throws org.eclipse.ui.PartInitException
org.eclipse.ui.PartInitExceptionpublic void initializeTableLayout(org.eclipse.swt.widgets.Composite parent)
public boolean isDirty()
isDirty in interface org.eclipse.ui.IEditorPartisDirty in class org.eclipse.ui.part.EditorPartIEditorPart.isDirty()public boolean isSaveAsAllowed()
isSaveAsAllowed in interface org.eclipse.ui.IEditorPartisSaveAsAllowed in class org.eclipse.ui.part.EditorPartIEditorPart.isSaveAsAllowed()public void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
resourceChanged in interface org.eclipse.core.resources.IResourceChangeListenerIResourceChangeListener.resourceChanged(IResourceChangeEvent)public void rowsChanged(MiniSpreadsheet miniSpreadsheet)
IMiniSpreadsheetListener
rowsChanged in interface IMiniSpreadsheetListenerIMiniSpreadsheetListener.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.CoreExceptionpublic void setFocus()
setFocus in interface org.eclipse.ui.IWorkbenchPartsetFocus in class org.eclipse.ui.part.WorkbenchPartprotected void setIsDirty(boolean isDirty)
public void valueChanged(MiniSpreadsheet miniSpreadsheet,
int row,
int column,
java.lang.String newValue)
IMiniSpreadsheetListener
valueChanged in interface IMiniSpreadsheetListenerminiSpreadsheet - changed MiniSpreadsheetrow - row index (0-based)column - column index (0-based)newValue - new string value of changed cellIMiniSpreadsheetListener.valueChanged(MiniSpreadsheet, int, int, String)