<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-1557780184357927241.post2383263858817820854..comments</id><updated>2011-06-18T23:13:43.688+05:30</updated><category term='Reviews'/><category term='debug'/><category term='guidelines'/><category term='infocenter'/><category term='Commands'/><category term='tools'/><category term='Facets'/><category term='WTP'/><category term='icons'/><category term='java'/><category term='swing'/><category term='EPP'/><category term='Target'/><category term='EMF'/><category term='gef'/><category term='wizards'/><category term='JRE'/><category term='XML'/><category term='PDE'/><category term='jface'/><category term='jdt'/><category term='dialogs'/><category term='.options'/><category term='export'/><category term='3.4'/><category term='Progress'/><category term='3.6'/><category term='help'/><category term='Tutorials'/><category term='swt'/><category term='jar'/><category term='shortcut'/><category term='3.5'/><category term='Tray'/><category term='RCP'/><category term='Bugs'/><category term='Mac'/><category term='features'/><category term='search'/><category term='Orion'/><category term='3.7'/><category term='Update'/><category term='workbench'/><category term='eclipse'/><category term='Downloads'/><category term='plugins'/><category term='e4'/><title type='text'>Comments on Eclipse Tips - Prakash G.R.: Commands Part 3: Parameters for Commands</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.eclipse-tips.com/feeds/2383263858817820854/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html'/><author><name>Prakash G.R.</name><uri>https://profiles.google.com/108042513819673523236</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-YdjcR7SY4Rk/AAAAAAAAAAI/AAAAAAAAFvk/uCw46f3GQ_o/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-382983424836356586</id><published>2011-06-14T22:26:27.068+05:30</published><updated>2011-06-14T22:26:27.068+05:30</updated><title type='text'>&amp;quot;org.eclipse.ui.handlers&amp;quot; allows to spec...</title><content type='html'>&amp;quot;org.eclipse.ui.handlers&amp;quot; allows to specify parameters, too, but it seems they are not made available in the handler&amp;#39;s execute method. Is this right or do I miss something?&lt;br /&gt;&lt;br /&gt;Not working example:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;         &lt;br /&gt;            &lt;br /&gt;            &lt;br /&gt;            &lt;br /&gt;            &lt;br /&gt;         &lt;br /&gt;      &lt;br /&gt;[...]</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/382983424836356586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/382983424836356586'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html?showComment=1308070587068#c382983424836356586' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-2383263858817820854' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/2383263858817820854' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-272501195'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-4751523500370565956</id><published>2011-04-16T09:03:56.500+05:30</published><updated>2011-04-16T09:03:56.500+05:30</updated><title type='text'>HI, 

How to add command handler to the menumanage...</title><content type='html'>HI, &lt;br /&gt;&lt;br /&gt;How to add command handler to the menumanager because &lt;br /&gt;&lt;br /&gt;Menumanager has add method which accept action has input it will not accept command handler… &lt;br /&gt;&lt;br /&gt;IMenuService menuservice = (IMenuService)PlatformUI.getWorkbench().getActiveWorkbenchWi ndow().getService(IMenuService.class); &lt;br /&gt;ICommandService commadnService = (ICommandService) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getServ ice(ICommandService.class); &lt;br /&gt;Command cmnd = commadnService.getCommand(“com.jobsleaf.comman.display”); &lt;br /&gt;MenuManager menumgr = new MenuManager(); &lt;br /&gt;&lt;br /&gt;/// how can i add command to menu manager &lt;br /&gt;&lt;br /&gt;menuservice.populateContributionManager(menumgr,”menu:com.ericsson.properties.view.view4 “); &lt;br /&gt;&lt;br /&gt;Please help me i am half the way of the problem &lt;br /&gt;&lt;br /&gt;more info &lt;br /&gt;&lt;br /&gt;http://www.eclipse.org/forums/index.php?t=msg&amp;amp;th=207827&amp;amp;start=0&amp;amp;S=bcb7e587d80fac913deba3389ec6e070 &lt;br /&gt;Thanks &lt;br /&gt;Ashok</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/4751523500370565956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/4751523500370565956'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html?showComment=1302924836500#c4751523500370565956' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-2383263858817820854' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/2383263858817820854' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-758269194'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-753065796749695422</id><published>2010-12-29T05:27:43.615+05:30</published><updated>2010-12-29T05:27:43.615+05:30</updated><title type='text'>That top example is almost exactly what I have bee...</title><content type='html'>That top example is almost exactly what I have been searching for all day.  However, I can&amp;#39;t figure out how to use it to do what I want.  I want to have an eclipse cheatsheet command that opens a specified file.  If I use the file open command, it doesn&amp;#39;t let me pass in parameters and just opens the window.  If I can get it to open (execute) a file then I can run AHK and AutoIt scripts to further the cheatsheet automation.  Please help.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/753065796749695422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/753065796749695422'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html?showComment=1293580663615#c753065796749695422' title=''/><author><name>gsheppa</name><uri>http://www.blogger.com/profile/00947643690211883132</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-2383263858817820854' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/2383263858817820854' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-291140645'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-8622945052018985266</id><published>2009-11-18T10:00:08.933+05:30</published><updated>2009-11-18T10:00:08.933+05:30</updated><title type='text'>@Anonymous,

     The &amp;#39;Show View&amp;#39; command ...</title><content type='html'>@Anonymous,&lt;br /&gt;&lt;br /&gt;     The &amp;#39;Show View&amp;#39; command with view id parameter.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/8622945052018985266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/8622945052018985266'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html?showComment=1258518608933#c8622945052018985266' title=''/><author><name>Prakash G.R.</name><uri>http://www.blogger.com/profile/13046268367318873066</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-2383263858817820854' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/2383263858817820854' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2094461490'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-7150839289292167611</id><published>2009-11-18T06:41:37.883+05:30</published><updated>2009-11-18T06:41:37.883+05:30</updated><title type='text'>I&amp;#39;m sorry, but I&amp;#39;m a bit new to the Comman...</title><content type='html'>I&amp;#39;m sorry, but I&amp;#39;m a bit new to the Command Framework.  I&amp;#39;m having a hard time thinking of a situation where command parameters are useful.  Would it be possible for you to give an example where the parameter value is determined at runtime?  Thanks.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/7150839289292167611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/7150839289292167611'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html?showComment=1258506697883#c7150839289292167611' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-2383263858817820854' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/2383263858817820854' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1371875276'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-7285162323064595805</id><published>2009-01-09T14:31:00.000+05:30</published><updated>2009-01-09T14:31:00.000+05:30</updated><title type='text'>@Wayne,&lt;br&gt;    Yes, I'll be very much interested :...</title><content type='html'>@Wayne,&lt;BR/&gt;    Yes, I'll be very much interested :-)&lt;BR/&gt;&lt;BR/&gt;@Anonymous #1:&lt;BR/&gt;    I don't think you can change the name/label of a command.&lt;BR/&gt;&lt;BR/&gt;@Anonymous #2:&lt;BR/&gt;    In your handler's execute method,&lt;BR/&gt;&lt;BR/&gt;HandlerUtil.getVariable(event, ISources.ACTIVE_CURRENT_SELECTION_NAME);&lt;BR/&gt;&lt;BR/&gt;should give you the current selection. But you don't need a parameterized command for this. A normal command itself would do.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/7285162323064595805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/7285162323064595805'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html?showComment=1231491660000#c7285162323064595805' title=''/><author><name>Prakash G.R.</name><uri>http://www.blogger.com/profile/13046268367318873066</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-2383263858817820854' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/2383263858817820854' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2094461490'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-3074554399403748151</id><published>2009-01-09T02:28:00.000+05:30</published><updated>2009-01-09T02:28:00.000+05:30</updated><title type='text'>Nice series of tips on commands.  It got me to thi...</title><content type='html'>Nice series of tips on commands.  It got me to think about reworking my old &lt;BR/&gt;actions. &lt;BR/&gt;&lt;BR/&gt;Having one problem though... &lt;BR/&gt;&lt;BR/&gt;The example shows passing static strings as parameters but if the goal is to run a handler on a user selected resource, how does one pass the selection/ resource back to the command/handler from the menuContribution/command?&lt;BR/&gt;(IActionDelegate had selectionChanged for this)&lt;BR/&gt;&lt;BR/&gt;John C.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/3074554399403748151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/3074554399403748151'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html?showComment=1231448280000#c3074554399403748151' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-2383263858817820854' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/2383263858817820854' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-861937210'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-4982828577398963830</id><published>2009-01-09T02:13:00.000+05:30</published><updated>2009-01-09T02:13:00.000+05:30</updated><title type='text'>Your example showed passing strings as parameters....</title><content type='html'>Your example showed passing strings as parameters.  But if my goal is to select a file in the Navigator for example, show a command label in the popup menu on the file and then have my handler take some action on the selected file - How does one pass the file name as a parameter back to the command and handler?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/4982828577398963830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/4982828577398963830'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html?showComment=1231447380000#c4982828577398963830' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-2383263858817820854' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/2383263858817820854' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-450761705'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-2747582186484694183</id><published>2009-01-08T21:38:00.000+05:30</published><updated>2009-01-08T21:38:00.000+05:30</updated><title type='text'>Are you interested in turning these posts into an ...</title><content type='html'>Are you interested in turning these posts into an article for &lt;A HREF="http://www.eclipse.org/articles" REL="nofollow"&gt;Eclipse Corner&lt;/A&gt;?&lt;BR/&gt;&lt;BR/&gt;Please see &lt;A HREF="https://bugs.eclipse.org/bugs/show_bug.cgi?id=223445" REL="nofollow"&gt;Bug 223445&lt;/A&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/2747582186484694183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/2383263858817820854/comments/default/2747582186484694183'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html?showComment=1231430880000#c2747582186484694183' title=''/><author><name>Wayne</name><uri>http://www.blogger.com/profile/02277665617356449769</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://www.eclipse.org/evangelism/blog/images/polarbear-small-colour.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2008/12/commands-part-3-parameters-for-commands.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-2383263858817820854' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/2383263858817820854' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1880400541'/></entry></feed>
