Class 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
    • Field Summary

      • Fields inherited from class org.eclipse.datatools.sqltools.sqleditor.internal.actions.BaseExecuteAction

        _job
      • Fields inherited from interface org.eclipse.jface.action.IAction

        AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      java.lang.RunnablegetPostRun() 
      java.lang.StringgetSQLStatements() 
      booleanisEnabled()
      Overrides the enabled state.
      voidrun() 
      voidsetSQLBuilder​(org.eclipse.datatools.sqltools.sqlbuilder.SQLBuilder sqlBuilder) 
      voidupdate()
      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
      • Methods inherited from class org.eclipse.core.commands.common.EventManager

        addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Overrides the enabled state.
        Specified by:
        isEnabled in interface org.eclipse.jface.action.IAction
        Overrides:
        isEnabled in class org.eclipse.jface.action.Action
      • update

        public void update()
        Overrides the update state.
        Specified by:
        update in interface org.eclipse.ui.texteditor.IUpdate
        Overrides:
        update in class org.eclipse.datatools.sqltools.sqlbuilder.actions.ExecuteAction
      • setSQLBuilder

        public void setSQLBuilder​(org.eclipse.datatools.sqltools.sqlbuilder.SQLBuilder sqlBuilder)
        Overrides:
        setSQLBuilder in class org.eclipse.datatools.sqltools.sqlbuilder.actions.ExecuteAction
      • getPostRun

        public java.lang.Runnable getPostRun()
        Overrides:
        getPostRun in class org.eclipse.datatools.sqltools.sqlbuilder.actions.ExecuteAction
      • getSQLStatements

        public java.lang.String getSQLStatements()
        Overrides:
        getSQLStatements in class org.eclipse.datatools.sqltools.sqlbuilder.actions.ExecuteAction
      • run

        public void run()
        Specified by:
        run in interface org.eclipse.jface.action.IAction
        Overrides:
        run in class org.eclipse.datatools.sqltools.sqlbuilder.actions.ExecuteAction