Package com.iizigo.db.editor
Class CustomExecuteAction
- java.lang.Object
- org.eclipse.core.commands.common.EventManager
- org.eclipse.jface.action.AbstractAction
- org.eclipse.jface.action.Action
- org.eclipse.datatools.sqltools.sqleditor.internal.actions.BaseExecuteAction
- org.eclipse.datatools.sqltools.sqlbuilder.actions.ExecuteAction
- com.iizigo.db.editor.CustomExecuteAction
- All Implemented Interfaces:
org.eclipse.jface.action.IAction
,org.eclipse.ui.texteditor.IUpdate
public class CustomExecuteAction extends org.eclipse.datatools.sqltools.sqlbuilder.actions.ExecuteAction
Customized Execute action providing VS Field variables, and fixing command execution. Code copied (and modified) and overridden from super class.- Author:
- Christopher Mindus
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Runnable
getPostRun()
java.lang.String
getSQLStatements()
boolean
isEnabled()
Overrides the enabled state.void
run()
void
setSQLBuilder(org.eclipse.datatools.sqltools.sqlbuilder.SQLBuilder sqlBuilder)
void
update()
Overrides the update state.Methods inherited from class org.eclipse.datatools.sqltools.sqlbuilder.actions.ExecuteAction
getDatabaseIdentifier
Methods inherited from class org.eclipse.datatools.sqltools.sqleditor.internal.actions.BaseExecuteAction
getEditor, getExecutionConnection, getVariableDeclarations, isSplitByDefault, processError, promptVariable
Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
Methods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
Method Detail
isEnabled
public boolean isEnabled()
Overrides the enabled state.- Specified by:
isEnabled
in interfaceorg.eclipse.jface.action.IAction
- Overrides:
isEnabled
in classorg.eclipse.jface.action.Action
update
public void update()
Overrides the update state.- Specified by:
update
in interfaceorg.eclipse.ui.texteditor.IUpdate
- Overrides:
update
in classorg.eclipse.datatools.sqltools.sqlbuilder.actions.ExecuteAction
setSQLBuilder
public void setSQLBuilder(org.eclipse.datatools.sqltools.sqlbuilder.SQLBuilder sqlBuilder)
- Overrides:
setSQLBuilder
in classorg.eclipse.datatools.sqltools.sqlbuilder.actions.ExecuteAction
getPostRun
public java.lang.Runnable getPostRun()
- Overrides:
getPostRun
in classorg.eclipse.datatools.sqltools.sqlbuilder.actions.ExecuteAction
getSQLStatements
public java.lang.String getSQLStatements()
- Overrides:
getSQLStatements
in classorg.eclipse.datatools.sqltools.sqlbuilder.actions.ExecuteAction
run
public void run()
- Specified by:
run
in interfaceorg.eclipse.jface.action.IAction
- Overrides:
run
in classorg.eclipse.datatools.sqltools.sqlbuilder.actions.ExecuteAction