<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Adding Eclipse IDE menu options to your RCP applications</title>
	<atom:link href="http://www.modumind.com/2009/08/17/adding-eclipse-ide-menu-options-to-your-rcp-applications/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.modumind.com/2009/08/17/adding-eclipse-ide-menu-options-to-your-rcp-applications/</link>
	<description>Eclipse RCP and OSGi training - online or onsite</description>
	<lastBuildDate>Fri, 03 Feb 2012 15:37:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Patrick</title>
		<link>http://www.modumind.com/2009/08/17/adding-eclipse-ide-menu-options-to-your-rcp-applications/comment-page-1/#comment-19592</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Mon, 18 Apr 2011 15:49:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.modumind.com/?p=706#comment-19592</guid>
		<description>Hi Ashok,

There is a new menu API for adding commands programmatically, though I would still suggest adding commands using the org.eclipse.ui.menus extension point if you can.

Programmatically, you&#039;ll need to use an AbstractContributionFactory. Here&#039;s a &lt;a href=&quot;http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ui/menus/AbstractContributionFactory.html&quot; rel=&quot;nofollow&quot;&gt;code snippet&lt;/a&gt; that shows how to use one.</description>
		<content:encoded><![CDATA[<p>Hi Ashok,</p>
<p>There is a new menu API for adding commands programmatically, though I would still suggest adding commands using the org.eclipse.ui.menus extension point if you can.</p>
<p>Programmatically, you&#8217;ll need to use an AbstractContributionFactory. Here&#8217;s a <a href="http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ui/menus/AbstractContributionFactory.html" rel="nofollow">code snippet</a> that shows how to use one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashok</title>
		<link>http://www.modumind.com/2009/08/17/adding-eclipse-ide-menu-options-to-your-rcp-applications/comment-page-1/#comment-19472</link>
		<dc:creator>Ashok</dc:creator>
		<pubDate>Sat, 16 Apr 2011 03:24:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.modumind.com/?p=706#comment-19472</guid>
		<description>HI,

How to add command handler to the menumanager because 

Menumanager has add method which accept action has input it will not accept command handler...

IMenuService menuservice = (IMenuService)PlatformUI.getWorkbench().getActiveWorkbenchWi ndow().getService(IMenuService.class);
ICommandService commadnService = (ICommandService) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getServ ice(ICommandService.class);
Command cmnd = commadnService.getCommand(&quot;com.jobsleaf.comman.display&quot;);
MenuManager menumgr = new MenuManager();

/// how can i add command to menu manager

menuservice.populateContributionManager(menumgr,&quot;menu:com.ericsson.properties.view.view4 &quot;);


Please help me i am half the way of the problem


more info 

http://www.eclipse.org/forums/index.php?t=msg&amp;th=207827&amp;start=0&amp;S=bcb7e587d80fac913deba3389ec6e070
Thanks
Ashok</description>
		<content:encoded><![CDATA[<p>HI,</p>
<p>How to add command handler to the menumanager because </p>
<p>Menumanager has add method which accept action has input it will not accept command handler&#8230;</p>
<p>IMenuService menuservice = (IMenuService)PlatformUI.getWorkbench().getActiveWorkbenchWi ndow().getService(IMenuService.class);<br />
ICommandService commadnService = (ICommandService) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getServ ice(ICommandService.class);<br />
Command cmnd = commadnService.getCommand(&#8220;com.jobsleaf.comman.display&#8221;);<br />
MenuManager menumgr = new MenuManager();</p>
<p>/// how can i add command to menu manager</p>
<p>menuservice.populateContributionManager(menumgr,&#8221;menu:com.ericsson.properties.view.view4 &#8220;);</p>
<p>Please help me i am half the way of the problem</p>
<p>more info </p>
<p><a href="http://www.eclipse.org/forums/index.php?t=msg&#038;th=207827&#038;start=0&#038;S=bcb7e587d80fac913deba3389ec6e070" rel="nofollow">http://www.eclipse.org/forums/index.php?t=msg&#038;th=207827&#038;start=0&#038;S=bcb7e587d80fac913deba3389ec6e070</a><br />
Thanks<br />
Ashok</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Zambrovski</title>
		<link>http://www.modumind.com/2009/08/17/adding-eclipse-ide-menu-options-to-your-rcp-applications/comment-page-1/#comment-1134</link>
		<dc:creator>Simon Zambrovski</dc:creator>
		<pubDate>Tue, 18 Aug 2009 02:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.modumind.com/?p=706#comment-1134</guid>
		<description>I described my pain here: http://www.techjava.de/topics/2009/04/rcp-help-system/</description>
		<content:encoded><![CDATA[<p>I described my pain here: <a href="http://www.techjava.de/topics/2009/04/rcp-help-system/" rel="nofollow">http://www.techjava.de/topics/2009/04/rcp-help-system/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Zambrovski</title>
		<link>http://www.modumind.com/2009/08/17/adding-eclipse-ide-menu-options-to-your-rcp-applications/comment-page-1/#comment-1133</link>
		<dc:creator>Simon Zambrovski</dc:creator>
		<pubDate>Tue, 18 Aug 2009 02:36:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.modumind.com/?p=706#comment-1133</guid>
		<description>I spend about a week trying to find out how the dynamic help button works. It turned out that you have to call the register for it to work...</description>
		<content:encoded><![CDATA[<p>I spend about a week trying to find out how the dynamic help button works. It turned out that you have to call the register for it to work&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://www.modumind.com/2009/08/17/adding-eclipse-ide-menu-options-to-your-rcp-applications/comment-page-1/#comment-1128</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Mon, 17 Aug 2009 23:27:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.modumind.com/?p=706#comment-1128</guid>
		<description>Looks like this is a more general issue with the standard menu options.

https://bugs.eclipse.org/270007

--- Patrick</description>
		<content:encoded><![CDATA[<p>Looks like this is a more general issue with the standard menu options.</p>
<p><a href="https://bugs.eclipse.org/270007" rel="nofollow">https://bugs.eclipse.org/270007</a></p>
<p>&#8212; Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: André Dietisheim</title>
		<link>http://www.modumind.com/2009/08/17/adding-eclipse-ide-menu-options-to-your-rcp-applications/comment-page-1/#comment-1126</link>
		<dc:creator>André Dietisheim</dc:creator>
		<pubDate>Mon, 17 Aug 2009 23:12:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.modumind.com/?p=706#comment-1126</guid>
		<description>I experienced exactly the same, when it was up to the save command. I had to create it using the Action factory, too. I managed that a command based action showed up, but it was not linked to the dirty state of the editors. Digging into the Action&#039;s code I saw that it&#039;s not bridged the way the other actions are. I guess it&#039;s the last resistant of the disapering species, the actions ;-)</description>
		<content:encoded><![CDATA[<p>I experienced exactly the same, when it was up to the save command. I had to create it using the Action factory, too. I managed that a command based action showed up, but it was not linked to the dirty state of the editors. Digging into the Action&#8217;s code I saw that it&#8217;s not bridged the way the other actions are. I guess it&#8217;s the last resistant of the disapering species, the actions ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Jain</title>
		<link>http://www.modumind.com/2009/08/17/adding-eclipse-ide-menu-options-to-your-rcp-applications/comment-page-1/#comment-1125</link>
		<dc:creator>Eric Jain</dc:creator>
		<pubDate>Mon, 17 Aug 2009 22:47:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.modumind.com/?p=706#comment-1125</guid>
		<description>Sure you can add the standard menu options in a declarative manner, but to get e.g. the save command to work, it appears that you still need to call register(ActionFactory.SAVE.create(window)) in your ActionBarAdvisor. Or did I overlook something as well?</description>
		<content:encoded><![CDATA[<p>Sure you can add the standard menu options in a declarative manner, but to get e.g. the save command to work, it appears that you still need to call register(ActionFactory.SAVE.create(window)) in your ActionBarAdvisor. Or did I overlook something as well?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars Vogel</title>
		<link>http://www.modumind.com/2009/08/17/adding-eclipse-ide-menu-options-to-your-rcp-applications/comment-page-1/#comment-1124</link>
		<dc:creator>Lars Vogel</dc:creator>
		<pubDate>Mon, 17 Aug 2009 21:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.modumind.com/?p=706#comment-1124</guid>
		<description>Hi Patrick,

I actually made the same assumption as you did and I was corrected a few weeks ago in the newsgroup. ;-)

Cheers, Lars</description>
		<content:encoded><![CDATA[<p>Hi Patrick,</p>
<p>I actually made the same assumption as you did and I was corrected a few weeks ago in the newsgroup. ;-)</p>
<p>Cheers, Lars</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://www.modumind.com/2009/08/17/adding-eclipse-ide-menu-options-to-your-rcp-applications/comment-page-1/#comment-1123</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Mon, 17 Aug 2009 21:12:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.modumind.com/?p=706#comment-1123</guid>
		<description>Hi Lars,

Thanks for the correcting me on that. It appears that the images are being contributed by the org.eclipse.ui.commandImages extension point, which I wasn&#039;t familiar with before. I guess the only thing missing at this point is the help context specifications. 

--- Patrick</description>
		<content:encoded><![CDATA[<p>Hi Lars,</p>
<p>Thanks for the correcting me on that. It appears that the images are being contributed by the org.eclipse.ui.commandImages extension point, which I wasn&#8217;t familiar with before. I guess the only thing missing at this point is the help context specifications. </p>
<p>&#8212; Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars Vogel</title>
		<link>http://www.modumind.com/2009/08/17/adding-eclipse-ide-menu-options-to-your-rcp-applications/comment-page-1/#comment-1122</link>
		<dc:creator>Lars Vogel</dc:creator>
		<pubDate>Mon, 17 Aug 2009 21:02:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.modumind.com/?p=706#comment-1122</guid>
		<description>If you use the commands without specifying labels, etc then also the standard labels, icons, etc. are used. I just tested with the commands Exit and Copy. 

I assume the same applies fot the internationalization but I did not test this. 

In general I believe actions should not be used any more.</description>
		<content:encoded><![CDATA[<p>If you use the commands without specifying labels, etc then also the standard labels, icons, etc. are used. I just tested with the commands Exit and Copy. </p>
<p>I assume the same applies fot the internationalization but I did not test this. </p>
<p>In general I believe actions should not be used any more.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

