|
||||||||||
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 ISchemaObjectEditorHandler
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
ISchemaObjectEditorHandler
doSave
in interface ISchemaObjectEditorHandler
public void doSaveAs()
doSaveAs
in interface ISchemaObjectEditorHandler
public java.lang.String generateScript()
ISchemaObjectEditorHandler
generateScript
in interface ISchemaObjectEditorHandler
public java.lang.Object getAdapter(java.lang.Class adapter)
ISchemaObjectEditorHandler
super.getAdapter
in
SchemaObjectEditor
returns null.
getAdapter
in interface ISchemaObjectEditorHandler
public boolean isSaveAsAllowed()
ISchemaObjectEditorHandler
isSaveAsAllowed
in interface ISchemaObjectEditorHandler
public void pageChanged(int newPageIndex)
ISchemaObjectEditorHandler
pageChanged
in interface ISchemaObjectEditorHandler
public void refreshFromDB(org.eclipse.core.runtime.IProgressMonitor monitor)
refreshFromDB
in interface ISchemaObjectEditorHandler
public void resouceChanged(IResourceChangeEvent event)
IResourceChangeHandler
resouceChanged
in interface IResourceChangeHandler
public void revert()
ISchemaObjectEditorHandler
revert
in interface ISchemaObjectEditorHandler
public void setEditor(ISchemaObjectEditor editor)
ISchemaObjectEditorHandler
setEditor
in interface ISchemaObjectEditorHandler
public java.lang.String getDisplayName()
ISchemaObjectEditorHandler
getDisplayName
in interface ISchemaObjectEditorHandler
public ISchemaObjectEditorInput getEditorInput()
public void hookInitialization()
ISchemaObjectEditorHandler
hookInitialization
in interface ISchemaObjectEditorHandler
public SchemaObjectEditorModelListenersNotifier getNotifier()
getNotifier
in interface ISchemaObjectEditorHandler
public boolean inSavingProcess()
ISchemaObjectEditorHandler
inSavingProcess
in interface ISchemaObjectEditorHandler
true
if the editor is in saving processpublic java.lang.String getGroupExecDisplayString()
public boolean getOpenFileAfterSaveasOption()
public void forceFocusObject(SQLObject object)
forceFocusObject
in interface ISchemaObjectEditorHandler
public boolean checkSchemaObjectExistence(boolean doCheck)
checkSchemaObjectExistence
in interface ISchemaObjectEditorHandler
doCheck
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |