How to add a menu item [message #289728] |
Wed, 10 August 2005 11:49 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02770 seconds