How to add a menu item into the menu "File->New"??? [message #287222] |
Mon, 27 June 2005 13:53  |
Eclipse User |
|
|
|
Hi,
I have the below XML fragment in my plugin.xml. I can't seem to make my
menu item be part of the "File->New" menu. I know it has to do with the
'path' in <menu> tag. Can someone please advise? Thanks!
<extension point="org.eclipse.ui.popupMenus">
<objectContribution
id="com.xyz.MyObjectAction"
objectClass="org.eclipse.core.resources.IResource"
adaptable="true" nameFilter="*">
<menu
label="ME"
path="New"
id="MyMenu">
<groupMarker name="basic.grp"/>
<separator name="contributed.grp"/>
</menu>
<action
id="com.xyz.MyAction"
label="action"
icon="icons/myicon.gif"
menubarPath="MyMenu/basic.grp"
class="com.xyz.MyAction">
</action>
</objectContribution>
</extension>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04960 seconds