Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Add option under "Project" in Menubar
Add option under "Project" in Menubar [message #479042] Sat, 08 August 2009 14:12 Go to next message
Rahul Yadav is currently offline Rahul YadavFriend
Messages: 65
Registered: July 2009
Member
Hi All,
I have to add an option under "Project" in menu bar.So when user clicks
on "Project" in menu bar the drop down should contain this option.
I am able to add option to menu bar before/after project but not in the
list displayed in "Project".This option has to come after "Close Project".

<extension point="org.eclipse.ui.menus">
<menuContribution
locationURI="menu:org.eclipse.ui.main.menu?after=project">
<command commandId="de.vogella.plugin.htmlconverter.convert"
label="Create HTML"
style="push">
</command>
</menuContribution>
</extension>


Thanks all.
Re: Add option under "Project" in Menubar [message #479057 is a reply to message #479042] Sat, 08 August 2009 16:59 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi,

Try:
menu:project?after=buildAutomatically

The best way of finding an existing ID for a menu is plugin-spy for
menus which is described here:
http://www.vogella.de/articles/EclipseCodeAccess/article.htm l#pluginspy_menu

Best regards, Lars
--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter


Rahul Yadav wrote:
> Hi All,
> I have to add an option under "Project" in menu bar.So when user clicks
> on "Project" in menu bar the drop down should contain this option.
> I am able to add option to menu bar before/after project but not in the
> list displayed in "Project".This option has to come after "Close Project".
>
> <extension point="org.eclipse.ui.menus">
> <menuContribution
> locationURI="menu:org.eclipse.ui.main.menu?after=project">
> <command commandId="de.vogella.plugin.htmlconverter.convert"
> label="Create HTML"
> style="push">
> </command>
> </menuContribution>
> </extension>
>
>
> Thanks all.
>
Re: Add option under "Project" in Menubar [message #479102 is a reply to message #479057] Sun, 09 August 2009 07:21 Go to previous message
Rahul Yadav is currently offline Rahul YadavFriend
Messages: 65
Registered: July 2009
Member
Thanks. it worked.
Need one more help...i have to add a line separator between "Close
Project" option and option i am providing("Create HTML").



<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="menu:project?after=closeProject">

<command commandId="de.vogella.plugin.htmlconverter.convert"
label="Create HTML"
style="push">
</command>
</menuContribution>
</extension>
Re: Add option under "Project" in Menubar [message #600421 is a reply to message #479042] Sat, 08 August 2009 16:59 Go to previous message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi,

Try:
menu:project?after=buildAutomatically

The best way of finding an existing ID for a menu is plugin-spy for
menus which is described here:
http://www.vogella.de/articles/EclipseCodeAccess/article.htm l#pluginspy_menu

Best regards, Lars
--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter


Rahul Yadav wrote:
> Hi All,
> I have to add an option under "Project" in menu bar.So when user clicks
> on "Project" in menu bar the drop down should contain this option.
> I am able to add option to menu bar before/after project but not in the
> list displayed in "Project".This option has to come after "Close Project".
>
> <extension point="org.eclipse.ui.menus">
> <menuContribution
> locationURI="menu:org.eclipse.ui.main.menu?after=project">
> <command commandId="de.vogella.plugin.htmlconverter.convert"
> label="Create HTML"
> style="push">
> </command>
> </menuContribution>
> </extension>
>
>
> Thanks all.
>
Re: Add option under "Project" in Menubar [message #600427 is a reply to message #479057] Sun, 09 August 2009 07:21 Go to previous message
Rahul Yadav is currently offline Rahul YadavFriend
Messages: 65
Registered: July 2009
Member
Thanks. it worked.
Need one more help...i have to add a line separator between "Close
Project" option and option i am providing("Create HTML").



<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="menu:project?after=closeProject">

<command commandId="de.vogella.plugin.htmlconverter.convert"
label="Create HTML"
style="push">
</command>
</menuContribution>
</extension>
Previous Topic:Add option under "Project" in Menubar
Next Topic:PDE build with annotation processing
Goto Forum:
  


Current Time: Tue Sep 24 18:15:37 GMT 2024

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

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

Back to the top