Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to add a menu item into the menu "File->New"???
How to add a menu item into the menu "File->New"??? [message #287222] Mon, 27 June 2005 13:53 Go to next message
Eclipse UserFriend
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>
Re: How to add a menu item into the menu "File->New"??? [message #287224 is a reply to message #287222] Mon, 27 June 2005 14:27 Go to previous messageGo to next message
Eclipse UserFriend
"AL" <unbonnevie@yahoo.com> wrote in message
news:d9pe0t$s84$1@news.eclipse.org...
> 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">
File New is a dynamic menu. What do you want to accomplish a new file? a new
project? a wizard? or?
Re: How to add a menu item into the menu "File->New"??? [message #287277 is a reply to message #287224] Tue, 28 June 2005 13:50 Go to previous messageGo to next message
Eclipse UserFriend
I want to add a new Wizard. I have the below in my plugin.xml, but it
does not work at all. Thanks for any tips.

<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension targetID="org.eclipse.ui.resourcePerspective">
<newWizardShortcut id="com.wizard.newfile"/>
</perspectiveExtension>
<perspectiveExtension targetID="org.eclipse.jdt.ui.JavaPerspective">
<newWizardShortcut id="com.wizard.newfile"/>
</perspectiveExtension>
<perspectiveExtension targetID="org.eclipse.pde.ui.PDEPerspective">
<newWizardShortcut id="com.wizard.newfile"/>
</perspectiveExtension>
</extension>

<extension point="org.eclipse.ui.newWizards">
<wizard name="Name"
category="com.newWizardCategory"
icon="icons/newfile_wiz.gif"
class="com.wizards.NewFileWizard"
id="com.wizard.newfile">
<selection class="org.eclipse.core.resources.IResource"/>
</wizard>
</extension>

<extension point="org.eclipse.ui.popupMenus">
<objectContribution
id="com.ObjectActions"
objectClass="org.eclipse.core.resources.IResource"
adaptable="true" nameFilter="*">
<action
id="com.actions.NewFileObjectAction"
label="New File"
icon="icons/newfile_wiz.gif"
menubarPath="file/new"
class="com.actions.NewFileObjectAction">
</action>
</objectContribution>
</extension>


Philippe Ombredanne wrote:

> "AL" <unbonnevie@yahoo.com> wrote in message
> news:d9pe0t$s84$1@news.eclipse.org...
>
>>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">
>
> File New is a dynamic menu. What do you want to accomplish a new file? a new
> project? a wizard? or?
>
>
Re: How to add a menu item into the menu "File->New"??? [message #287817 is a reply to message #287277] Thu, 07 July 2005 05:43 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

You asked this question before. See my answer there.

Dani
Previous Topic:Menu action item not shown in "File->New" menu. Tips?
Next Topic:Marking Files in Navigator Window as Having Errors
Goto Forum:
  


Current Time: Tue Jul 22 14:35:51 EDT 2025

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

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

Back to the top