Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to add a menu item
How to add a menu item [message #289728] Wed, 10 August 2005 11:49
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, ie 'mymenu',cut,copy should come without any
seperators in between..

Thanks & regards

Sibin
Previous Topic:Open multiple files with an editor plug-in
Next Topic:CVS and timestamps
Goto Forum:
  


Current Time: Fri Apr 19 20:02:53 GMT 2024

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

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

Back to the top