|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.schemaobjecteditor.ui.core.DefaultSchemaObjectEditorHandler
public class DefaultSchemaObjectEditorHandler
Instead of implementing the ISchemaEditorConfiguration from scratch, the consumer should extend this
class, and rewrite some methods.
| Constructor Summary | |
|---|---|
DefaultSchemaObjectEditorHandler()
|
|
| Method Summary | |
|---|---|
boolean |
checkSchemaObjectExistence(boolean doCheck)
Do check based on the parameter doCheck. |
void |
dispose()
Does something when the editor part is disposing |
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
Saves the content of the editor part. |
void |
doSaveAs()
Does nothing |
void |
forceFocusObject(SQLObject object)
Should be invoked in UI thread |
java.lang.String |
generateScript()
Generates script for the current editor. |
java.lang.Object |
getAdapter(java.lang.Class adapter)
Returns the adapter. |
java.lang.String |
getDisplayName()
Returns the display name of the current edited object (a meaningful name), this will be used for saving purpose. |
ISchemaObjectEditorInput |
getEditorInput()
|
java.lang.String |
getGroupExecDisplayString()
|
SchemaObjectEditorModelListenersNotifier |
getNotifier()
Returns the editor model listeners notifier. |
boolean |
getOpenFileAfterSaveasOption()
|
void |
hookInitialization()
Does some initialization jobs, this will be invoked by the editor after all pages are loaded |
boolean |
inSavingProcess()
Checks if the editor is in saving process, since the saving process may take time |
boolean |
isSaveAsAllowed()
Tests if savesa is allowed for this editor part |
void |
pageChanged(int newPageIndex)
Does something with the editor when the page is changed. |
void |
refreshFromDB(org.eclipse.core.runtime.IProgressMonitor monitor)
SubClass should override this method to refresh the model first, then refresh each page |
void |
resouceChanged(IResourceChangeEvent event)
The consumer need to call this method when the resouce is changed outside of the schema editor's scope |
void |
revert()
Reverts the editor to the original model (no need to refresh the model) |
void |
setEditor(ISchemaObjectEditor editor)
Since the instance of this class will be created using the Eclipse extension API, so that we need to set the editor to the hanlder for it to use |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSchemaObjectEditorHandler()
| Method Detail |
|---|
public void dispose()
ISchemaObjectEditorHandler
dispose in interface ISchemaObjectEditorHandlerpublic void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
ISchemaObjectEditorHandler
doSave in interface ISchemaObjectEditorHandlerpublic void doSaveAs()
doSaveAs in interface ISchemaObjectEditorHandlerpublic java.lang.String generateScript()
ISchemaObjectEditorHandler
generateScript in interface ISchemaObjectEditorHandlerpublic java.lang.Object getAdapter(java.lang.Class adapter)
ISchemaObjectEditorHandlersuper.getAdapter in
SchemaObjectEditor returns null.
getAdapter in interface ISchemaObjectEditorHandlerpublic boolean isSaveAsAllowed()
ISchemaObjectEditorHandler
isSaveAsAllowed in interface ISchemaObjectEditorHandlerpublic void pageChanged(int newPageIndex)
ISchemaObjectEditorHandler
pageChanged in interface ISchemaObjectEditorHandlerpublic void refreshFromDB(org.eclipse.core.runtime.IProgressMonitor monitor)
refreshFromDB in interface ISchemaObjectEditorHandlerpublic void resouceChanged(IResourceChangeEvent event)
IResourceChangeHandler
resouceChanged in interface IResourceChangeHandlerpublic void revert()
ISchemaObjectEditorHandler
revert in interface ISchemaObjectEditorHandlerpublic void setEditor(ISchemaObjectEditor editor)
ISchemaObjectEditorHandler
setEditor in interface ISchemaObjectEditorHandlerpublic java.lang.String getDisplayName()
ISchemaObjectEditorHandler
getDisplayName in interface ISchemaObjectEditorHandlerpublic ISchemaObjectEditorInput getEditorInput()
public void hookInitialization()
ISchemaObjectEditorHandler
hookInitialization in interface ISchemaObjectEditorHandlerpublic SchemaObjectEditorModelListenersNotifier getNotifier()
getNotifier in interface ISchemaObjectEditorHandlerpublic boolean inSavingProcess()
ISchemaObjectEditorHandler
inSavingProcess in interface ISchemaObjectEditorHandlertrue if the editor is in saving processpublic java.lang.String getGroupExecDisplayString()
public boolean getOpenFileAfterSaveasOption()
public void forceFocusObject(SQLObject object)
forceFocusObject in interface ISchemaObjectEditorHandlerpublic boolean checkSchemaObjectExistence(boolean doCheck)
checkSchemaObjectExistence in interface ISchemaObjectEditorHandlerdoCheck -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||