Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Adding actions to the context menu on a tab of an editor
Adding actions to the context menu on a tab of an editor [message #294703] Wed, 16 November 2005 10:44 Go to next message
Eclipse UserFriend
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.
Re: Adding actions to the context menu on a tab of an editor [message #294719 is a reply to message #294703] Wed, 16 November 2005 15:29 Go to previous message
Eclipse UserFriend
Originally posted by: douglas.pollock.magma.ca

news.eclipse.org wrote:
> Has anyone any ideas what I need to do to place the action on the editor
> tab's context menu?

AFAIK, you can't. Well, you could if you wrote your own presentation, but
that's probably not what you want.



d.
Previous Topic:Place context menu item for Resource Navigator
Next Topic:How can I add keybindings programmatically from within eclipse?
Goto Forum:
  


Current Time: Sat May 10 01:40:02 EDT 2025

Powered by FUDForum. Page generated in 0.02854 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top