Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to add a menu item in a popupmenu in the desire group.
How to add a menu item in a popupmenu in the desire group. [message #459540] Wed, 10 August 2005 11:03
Eclipse UserFriend
Originally posted by: sibin.tataelxsi.co..in

Hi,

I want to add a menu item to a a popupmenu ,that appears when we
right click on a file in the navigator view. For that I added an action
using the org.eclipse.ui.popupMenus extension point.
following is the snippet from my plugin.xml..
************************************************************ ******8

<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="true"
objectClass="org.eclipse.core.resources.IFile"
nameFilter="*"

id=" org.eclipse.team.ui.websitefilepopupmenucontributionsforopen ">
<filter
name="isWebsiteContentFile"
value ="true">
</filter>

<menu
label="%wd.editwith.label"
path="group3"
id="websitefileedit">
<separator
name="group1">
</separator>
</menu>

<action
label="%wd.editwith.notepad"
class="com.transparentfactory.ui.actions.COpenNotePadAction "
menubarPath="websitefileedit/group1"
id="org.eclipse.team.websitefile.editwithnotepad">
</action>
</objectContribution>
</extension>
************************************************************ *

By the above code I was able to add the action to the poup menu..

I want to add this menu item to the same group as the cut,copy,paste
actions
Which were already defined in the org.eclipse.ide plugin.

How should i specify the path so that it will appear in the same group as
the cut copy ,paste

Thanks & regards

Sibin
Previous Topic:Get the location of a tray item
Next Topic:Table
Goto Forum:
  


Current Time: Wed Apr 14 15:05:56 GMT 2021

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

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

Back to the top