|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.part.EditorActionBarContributor
org.eclipse.ui.texteditor.BasicTextEditorActionContributor
org.eclipse.ui.editors.text.TextEditorActionContributor
org.eclipse.datatools.sqltools.sqlbuilder.actions.SQLBuilderActionBarContributor
public class SQLBuilderActionBarContributor
This class provides actions for the SQL Builder editor.
| Field Summary | |
|---|---|
static java.lang.String |
CHANGE_STATEMENT_TYPE_ACTION_ID
|
static java.lang.String |
CONTENT_ASSIST_ACTION_ID
|
static java.lang.String |
CONTENT_ASSIST_ACTION_PREFIX
|
static java.lang.String |
CONTENT_TIP_ACTION_ID
|
static java.lang.String |
CONTENT_TIP_ACTION_PREFIX
|
static java.lang.String |
OMIT_CURRENT_SCHEMA_ACTION_ID
|
static java.lang.String |
REVERT_TO_DEFAULT_ACTION_ID
|
static java.lang.String |
REVERT_TO_PREVIOUS_ACTION_ID
|
static java.lang.String |
RUN_SQL_ACTION_ID
|
| Constructor Summary | |
|---|---|
SQLBuilderActionBarContributor()
Constructs an instance of this class. |
|
| Method Summary | |
|---|---|
void |
contributeToMenu(org.eclipse.jface.action.IMenuManager menuManager)
Contributes items to the given menu. |
void |
contributeToToolBar(org.eclipse.jface.action.IToolBarManager tbm)
Contributes items to the given toolbar. |
void |
dispose()
Disposes of this object. |
org.eclipse.jface.action.IAction |
getAction(java.lang.String actionID)
Returns the action installed under the given action id. |
void |
init(org.eclipse.ui.IActionBars bars)
Initializes the contributor. |
void |
init(org.eclipse.ui.IActionBars bars,
org.eclipse.ui.IWorkbenchPage page)
Initializes the contributor with the given set of action bars and the given workbench page. |
void |
setAction(java.lang.String actionID,
org.eclipse.jface.action.IAction action)
Installs the given action under the given action id. |
void |
setActiveEditor(org.eclipse.ui.IEditorPart activeEditor)
Sets the active editor for the contributor to the given editor. |
void |
setActiveSQLBuilder(SQLBuilder sqlBuilder)
|
| Methods inherited from class org.eclipse.ui.texteditor.BasicTextEditorActionContributor |
|---|
contributeToStatusLine |
| Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor |
|---|
contributeToCoolBar, getActionBars, getPage |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONTENT_ASSIST_ACTION_ID
public static final java.lang.String CONTENT_ASSIST_ACTION_PREFIX
public static final java.lang.String CONTENT_TIP_ACTION_ID
public static final java.lang.String CONTENT_TIP_ACTION_PREFIX
public static final java.lang.String RUN_SQL_ACTION_ID
public static final java.lang.String REVERT_TO_PREVIOUS_ACTION_ID
public static final java.lang.String REVERT_TO_DEFAULT_ACTION_ID
public static final java.lang.String CHANGE_STATEMENT_TYPE_ACTION_ID
public static final java.lang.String OMIT_CURRENT_SCHEMA_ACTION_ID
| Constructor Detail |
|---|
public SQLBuilderActionBarContributor()
| Method Detail |
|---|
public void contributeToMenu(org.eclipse.jface.action.IMenuManager menuManager)
contributeToMenu in class org.eclipse.ui.editors.text.TextEditorActionContributormenuManager - the menu to which to contributeEditorActionBarContributor.contributeToMenu(org.eclipse.jface.action.IMenuManager)public void contributeToToolBar(org.eclipse.jface.action.IToolBarManager tbm)
contributeToToolBar in class org.eclipse.ui.part.EditorActionBarContributortbm - the toolbar to which to contributeEditorActionBarContributor.contributeToToolBar(org.eclipse.jface.action.IToolBarManager)public void dispose()
dispose in interface org.eclipse.ui.IEditorActionBarContributordispose in class org.eclipse.ui.editors.text.TextEditorActionContributorpublic org.eclipse.jface.action.IAction getAction(java.lang.String actionID)
actionID - the ID of the action wanted
setAction(String, IAction)public void init(org.eclipse.ui.IActionBars bars)
init in class org.eclipse.ui.editors.text.TextEditorActionContributorEditorActionBarContributor.init(org.eclipse.ui.IActionBars)
public void init(org.eclipse.ui.IActionBars bars,
org.eclipse.ui.IWorkbenchPage page)
init in interface org.eclipse.ui.IEditorActionBarContributorinit in class org.eclipse.ui.part.EditorActionBarContributorIEditorActionBarContributor.init(org.eclipse.ui.IActionBars, org.eclipse.ui.IWorkbenchPage)
public void setAction(java.lang.String actionID,
org.eclipse.jface.action.IAction action)
actionID - the action ID to setaction - the action associated with the action IDgetAction(String)public void setActiveEditor(org.eclipse.ui.IEditorPart activeEditor)
setActiveEditor in interface org.eclipse.ui.IEditorActionBarContributorsetActiveEditor in class org.eclipse.ui.editors.text.TextEditorActionContributoractiveEditor - the new target editorEditorActionBarContributor.setActiveEditor(org.eclipse.ui.IEditorPart)public void setActiveSQLBuilder(SQLBuilder sqlBuilder)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||