|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISchemaObjectEditorHandler
Defines the behaviour of the schema object editor, notice that the name of most of the methods defined in this class
are the same as those in SchemaObjectEditor
, the method in SchemaObjectEditor
will delegate
the call to the corresponding method in this class.
Method Summary | |
---|---|
boolean |
checkSchemaObjectExistence(boolean doCheck)
existence check for schema object. |
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()
Saves the content of the editor part to another file |
void |
forceFocusObject(SQLObject object)
Performs a set focus action in schema editor to the given SQL object. Generally there're two steps: 1.Focus the page;2.Focus the UI component of the given object in that page. |
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. |
SchemaObjectEditorModelListenersNotifier |
getNotifier()
Returns the editor model listeners notifier. |
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)
Refreshes the model and then refresh the editor |
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 interface org.eclipse.datatools.sqltools.schemaobjecteditor.ui.IResourceChangeHandler |
---|
resouceChanged |
Method Detail |
---|
void dispose()
void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
monitor
- void doSaveAs()
java.lang.String generateScript()
java.lang.Object getAdapter(java.lang.Class adapter)
super.getAdapter
in
SchemaObjectEditor
returns null.
adapter
-
boolean isSaveAsAllowed()
void pageChanged(int newPageIndex)
newPageIndex
- void refreshFromDB(org.eclipse.core.runtime.IProgressMonitor monitor)
void revert()
void setEditor(ISchemaObjectEditor editor)
editor
- java.lang.String getDisplayName()
void hookInitialization()
SchemaObjectEditorModelListenersNotifier getNotifier()
boolean inSavingProcess()
true
if the editor is in saving processvoid forceFocusObject(SQLObject object)
object
- boolean checkSchemaObjectExistence(boolean doCheck)
doCheck
-
true
if object exists or the doCheck is passed with value false.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |