congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ExplainSQLActionDelegate
Code IndexAdd Tabnine to your IDE (free)

How to use
ExplainSQLActionDelegate
in
org.eclipse.datatools.sqltools.sqleditor.plan

Best Java code snippets using org.eclipse.datatools.sqltools.sqleditor.plan.ExplainSQLActionDelegate (Showing top 7 results out of 315)

origin: org.eclipse/org.eclipse.datatools.sqltools.routineeditor

public String getSQLStatements()
{
  if(explainAsRoutineObject())
  {
    return _procSql;
  }
  else
  {
    return super.getSQLStatements();
  }
}
origin: org.eclipse/org.eclipse.datatools.sqltools.routineeditor

private void runDelegate()
{
  super.run();
}
 
origin: org.eclipse/org.eclipse.datatools.sqltools.sqleditor

/**
 * Constructor
 * 
 * @param targetEditor the editor in which this action will be applied
 */
public ExplainSQLActionDelegate(SQLEditor targetEditor)
{
  setText(Messages.getString("ExplainSQLActionDelegate.action_title")); //$NON-NLS-1$
  setToolTipText(Messages.getString("ExplainSQLActionDelegate.action_tooltip")); //$NON-NLS-1$
  setImageDescriptor(Images.DESC_EXPLAIN_SQL);
  setActionDefinitionId(ISQLEditorActionConstants.EXPLAIN_SQL_ACTION_ID);
  setActiveEditor(targetEditor);
  targetEditor.getSelectionProvider().addSelectionChangedListener(this);
  update();
  PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IHelpContextIds.GET_EXECUTION_PLAN_ACTION);
}
origin: org.eclipse/org.eclipse.datatools.sqltools.sqleditor

  /**
   * Updates the action when selection changes
   * 
   * @param event
   */
  public void selectionChanged(SelectionChangedEvent event)
  {
    if (event.getSelection() instanceof ITextSelection)
    {
      update();
    }
  }
}
origin: org.eclipse/org.eclipse.datatools.sqltools.sqleditor

public void update()
{
  setEnabled(_sqlEditor != null && (_sqlEditor.isConnected()) && super.canBeEnabled());
}
origin: org.eclipse/org.eclipse.datatools.sqltools.routineeditor

        && super.canBeEnabled());
setEnabled(_sqlEditor != null && (_sqlEditor.isConnected()) && super.canBeEnabled());
origin: org.eclipse/org.eclipse.datatools.sqltools.routineeditor

super.run();
org.eclipse.datatools.sqltools.sqleditor.planExplainSQLActionDelegate

Javadoc

Action class to explain the selected SQL statements in SQL Editor or Routine Editor

Most used methods

  • canBeEnabled
  • getSQLStatements
  • run
  • setActionDefinitionId
  • setActiveEditor
  • setEnabled
  • setImageDescriptor
  • setText
  • setToolTipText
  • update

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • Menu (java.awt)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now