Adding actions to the context menu on a tab of an editor [message #294703] |
Wed, 16 November 2005 10:44  |
Eclipse User |
|
|
|
Hi,
I have a created a wizard. Results from the wizard are displayed in an
editor on the eclipse workbench (formated in a table). Each time i run the
wizard a new table is created in a new editor. As with all views and
editors, the editor has a tab with its name on it. Right clicking this tab
brings up a context menu. I want to add an action to this context menu.
Using the "Contributing Actions to the Eclipse Workbench" article on the
eclipse website i have written the following code in plugin.xml:
<extension point="org.eclipse.ui.popupMenus">
<viewerContribution
id="org.eclipse.ui.articles.action.contribution.popup.editor "
targetID="#TextEditorContext">
<action class="com.ibm.cicsia.myAction"
icon="icons/Logo.gif"
id="org.eclipse.ui.articles.action.contribution.editor.action1 " label="my
Action" menubarPath="additions">
</action>
</viewerContribution>
</extension>
However this code only adds myAction to the context menu inside the editor
(on the editable area).
Has anyone any ideas what I need to do to place the action on the editor
tab's context menu?
Cheers.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02854 seconds