|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.sqleditor.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(IMenuManager mm)
Contributes to the given SQLEditor context menu. |
void |
contributeToCoolBar(ICoolBarManager coolBarManager)
Contributes to the given cool bar. |
void |
contributeToMenu(IMenuManager menuManager)
Contributes to the given menu. |
void |
contributeToStatusLine(IStatusLineManager statusLineManager)
Contributes to the given status line. |
void |
contributeToToolBar(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 |
TextEditorActionContributor |
getParent()
|
void |
init(IActionBars bars,
IWorkbenchPage page)
Initializes this contributor, which is expected to add contributions as required to the given action bars and global action handlers. |
void |
menuAboutToShow(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(IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data)
|
void |
setParent(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 TextEditorActionContributor getParent()
public void setParent(TextEditorActionContributor parent)
setParent
in interface ISQLEditorActionContributorExtension
public java.lang.String getEditorId()
public void setInitializationData(IConfigurationElement config, java.lang.String propertyName, java.lang.Object data) throws CoreException
CoreException
public void setActiveEditor(SQLEditor targetEditor)
ISQLEditorActionContributorExtension
setActiveEditor
in interface ISQLEditorActionContributorExtension
targetEditor
- the new editor targetpublic void init(IActionBars bars, 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 ISQLEditorActionContributorExtension
bars
- the action barspage
- the workbench page for this contributorpublic void contributeToMenu(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 ISQLEditorActionContributorExtension
menuManager
- the manager that controls the menupublic void menuAboutToShow(IMenuManager manager)
menuAboutToShow
in interface ISQLEditorActionContributorExtension
public void contributeToStatusLine(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 ISQLEditorActionContributorExtension
statusLineManager
- the manager of the status linepublic void contributeToToolBar(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 ISQLEditorActionContributorExtension
toolBarManager
- the manager that controls the workbench tool barpublic void contributeToCoolBar(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 ISQLEditorActionContributorExtension
coolBarManager
- the manager that controls the workbench cool bar.public void contributeToContextMenu(IMenuManager mm)
ISQLEditorActionContributorExtension
contributeToContextMenu
in interface ISQLEditorActionContributorExtension
public void dispose()
ISQLEditorActionContributorExtension
dispose
in interface ISQLEditorActionContributorExtension
public void updateAction()
ISQLEditorActionContributorExtension
updateAction
in interface ISQLEditorActionContributorExtension
public void updateAction(boolean isSQLEditorPage)
ISQLEditorActionContributorExtension
updateAction
in interface ISQLEditorActionContributorExtension
isSQLEditorPage
- 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 |