|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.sqleditor.SQLEditorActionContributorExtension
public class SQLEditorActionContributorExtension
This class is for tooling vendor who wish to extend the sql dev tools to contribute workbench menu, toolbar item and context menus.
point:
org.eclipse.datatools.sqltools.sqleditor.actionextension| Field Summary |
|---|
| Fields inherited from interface org.eclipse.datatools.sqltools.sqleditor.ISQLEditorActionContributorExtension |
|---|
EDITOR_ID_ALL |
| Constructor Summary | |
|---|---|
SQLEditorActionContributorExtension()
|
|
| Method Summary | |
|---|---|
void |
contributeToContextMenu(org.eclipse.jface.action.IMenuManager mm)
Contributes to the given SQLEditor context menu. |
void |
contributeToCoolBar(org.eclipse.jface.action.ICoolBarManager coolBarManager)
Contributes to the given cool bar. |
void |
contributeToMenu(org.eclipse.jface.action.IMenuManager menuManager)
Contributes to the given menu. |
void |
contributeToStatusLine(org.eclipse.jface.action.IStatusLineManager statusLineManager)
Contributes to the given status line. |
void |
contributeToToolBar(org.eclipse.jface.action.IToolBarManager toolBarManager)
Contributes to the given tool bar. |
void |
dispose()
Disposes this contributor. |
java.lang.String |
getEditorId()
Returns the editor id that this contributor is interested in |
org.eclipse.ui.editors.text.TextEditorActionContributor |
getParent()
|
void |
init(org.eclipse.ui.IActionBars bars,
org.eclipse.ui.IWorkbenchPage page)
Initializes this contributor, which is expected to add contributions as required to the given action bars and global action handlers. |
void |
menuAboutToShow(org.eclipse.jface.action.IMenuManager manager)
Receives notification that the workbench menu is about to show. |
void |
setActiveEditor(SQLEditor targetEditor)
Sets the active editor for the contributor. |
void |
setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data)
|
void |
setParent(org.eclipse.ui.editors.text.TextEditorActionContributor parent)
|
void |
updateAction()
Requests that this object update its actions. |
void |
updateAction(boolean isSQLEditorPage)
Requests that this object update its actions when the page is switched. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLEditorActionContributorExtension()
| Method Detail |
|---|
public org.eclipse.ui.editors.text.TextEditorActionContributor getParent()
public void setParent(org.eclipse.ui.editors.text.TextEditorActionContributor parent)
setParent in interface ISQLEditorActionContributorExtensionpublic java.lang.String getEditorId()
public void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data)
throws org.eclipse.core.runtime.CoreException
setInitializationData in interface org.eclipse.core.runtime.IExecutableExtensionorg.eclipse.core.runtime.CoreExceptionpublic void setActiveEditor(SQLEditor targetEditor)
ISQLEditorActionContributorExtension
setActiveEditor in interface ISQLEditorActionContributorExtensiontargetEditor - the new editor target
public void init(org.eclipse.ui.IActionBars bars,
org.eclipse.ui.IWorkbenchPage page)
ISQLEditorActionContributorExtension
The page is passed to support the use of RetargetAction by the contributor. In this case the init
method implementors should:
null call partActivated on the retarget actionsAnd in the dispose method the retarget actions should be removed as part listeners.
init in interface ISQLEditorActionContributorExtensionbars - the action barspage - the workbench page for this contributorpublic void contributeToMenu(org.eclipse.jface.action.IMenuManager menuManager)
The SQLEditorActionContributorExtension implementation of this method
does nothing. Subclasses may reimplement to add to the menu portion of this
contribution.
contributeToMenu in interface ISQLEditorActionContributorExtensionmenuManager - the manager that controls the menupublic void menuAboutToShow(org.eclipse.jface.action.IMenuManager manager)
menuAboutToShow in interface ISQLEditorActionContributorExtensionmenuAboutToShow in interface org.eclipse.jface.action.IMenuListenerpublic void contributeToStatusLine(org.eclipse.jface.action.IStatusLineManager statusLineManager)
The SQLEditorActionContributorExtension implementation of this method
does nothing. Subclasses may reimplement to add to the status line portion of
this contribution.
contributeToStatusLine in interface ISQLEditorActionContributorExtensionstatusLineManager - the manager of the status linepublic void contributeToToolBar(org.eclipse.jface.action.IToolBarManager toolBarManager)
The SQLEditorActionContributorExtension implementation of this method
does nothing. Subclasses may reimplement to add to the tool bar portion of
this contribution.
contributeToToolBar in interface ISQLEditorActionContributorExtensiontoolBarManager - the manager that controls the workbench tool barpublic void contributeToCoolBar(org.eclipse.jface.action.ICoolBarManager coolBarManager)
The SQLEditorActionContributorExtension implementation of this method
does nothing. Subclasses may reimplement to add to the cool bar portion of
this contribution. There can only be conributions from a cool bar or a tool bar.
contributeToCoolBar in interface ISQLEditorActionContributorExtensioncoolBarManager - the manager that controls the workbench cool bar.public void contributeToContextMenu(org.eclipse.jface.action.IMenuManager mm)
ISQLEditorActionContributorExtension
contributeToContextMenu in interface ISQLEditorActionContributorExtensionpublic void dispose()
ISQLEditorActionContributorExtension
dispose in interface ISQLEditorActionContributorExtensionpublic void updateAction()
ISQLEditorActionContributorExtension
updateAction in interface ISQLEditorActionContributorExtensionpublic void updateAction(boolean isSQLEditorPage)
ISQLEditorActionContributorExtension
updateAction in interface ISQLEditorActionContributorExtensionisSQLEditorPage - whether the active page is an embeded instance of SQLEditor.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||