<?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.post4683890223289512521..comments</id><updated>2010-02-17T09:38:14.548+05:30</updated><title type='text'>Comments on Eclipse Tips - Prakash G.R.: Commands Part 4: Misc items ...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.eclipse-tips.com/feeds/4683890223289512521/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html'/><author><name>Prakash G. R.</name><email>noreply@blogger.com</email></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-5927575354520663198</id><published>2010-02-17T09:38:14.548+05:30</published><updated>2010-02-17T09:38:14.548+05:30</updated><title type='text'>@Mike,
   You should be using the command paramete...</title><content type='html'>@Mike,&lt;br /&gt;   You should be using the command parameter and toggle contributions. Check how the Align command  at the 6th part in this Command series. You can go thru the complete tutorial here: http://eclipse-tips.com/index.php/tutorials/1-actions-vs-commands</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/5927575354520663198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/5927575354520663198'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html?showComment=1266379694548#c5927575354520663198' title=''/><author><name>Prakash G.R.</name><uri>http://www.blogger.com/profile/13046268367318873066</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08225524632456251201'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-4683890223289512521' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/4683890223289512521' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-5685932171640610500</id><published>2010-02-17T00:34:43.442+05:30</published><updated>2010-02-17T00:34:43.442+05:30</updated><title type='text'>Okay, thanks.

So, if I'm in a handler for command...</title><content type='html'>Okay, thanks.&lt;br /&gt;&lt;br /&gt;So, if I&amp;#39;m in a handler for command X, and want to gain access to command Y (to disable it), how should I go about getting it?&lt;br /&gt;&lt;br /&gt;In case I&amp;#39;m on the wrong track altogether....what I&amp;#39;m ultimately trying to do is logically tie two toolbar buttons together so only one is active at a given time; one you press one, it disables itself and enables the other, like a switch.  Am I on the right track for implementing this?&lt;br /&gt;&lt;br /&gt;Thanks much.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/5685932171640610500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/5685932171640610500'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html?showComment=1266347083442#c5685932171640610500' title=''/><author><name>Mike Bria</name><uri>http://www.blogger.com/profile/10526104657156115391</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-4683890223289512521' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/4683890223289512521' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-351783287998072854</id><published>2010-02-16T22:37:11.465+05:30</published><updated>2010-02-16T22:37:11.465+05:30</updated><title type='text'>@Mike,
   Its an instance of IServiceLocator. Work...</title><content type='html'>@Mike,&lt;br /&gt;   Its an instance of IServiceLocator. Workbench, WorkbenchWindow, WorkbenchSite all are service locators. You can also create one, if you have to</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/351783287998072854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/351783287998072854'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html?showComment=1266340031465#c351783287998072854' title=''/><author><name>Prakash G.R.</name><uri>http://www.blogger.com/profile/13046268367318873066</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08225524632456251201'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-4683890223289512521' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/4683890223289512521' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-1596098396590804068</id><published>2010-02-16T22:28:02.663+05:30</published><updated>2010-02-16T22:28:02.663+05:30</updated><title type='text'>I've recently come across your blog and love it, f...</title><content type='html'>I&amp;#39;ve recently come across your blog and love it, finding it very well written and informative, thank you!&lt;br /&gt;&lt;br /&gt;Question about the above (possibly a dumb one, but whatever):  where are you getting the &amp;quot;serviceLocator&amp;quot; from?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/1596098396590804068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/1596098396590804068'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html?showComment=1266339482663#c1596098396590804068' title=''/><author><name>Mike Bria</name><uri>http://www.blogger.com/profile/10526104657156115391</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-4683890223289512521' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/4683890223289512521' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-7288503603766057123</id><published>2009-01-23T22:45:00.000+05:30</published><updated>2009-01-23T22:45:00.000+05:30</updated><title type='text'>Your tutorial is really good.I'm using more comman...</title><content type='html'>Your tutorial is really good.&lt;BR/&gt;I'm using more commands than before.&lt;BR/&gt;&lt;BR/&gt;But I think commands (or its handlers) cannot have a checked state.  This is a limitation.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/7288503603766057123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/7288503603766057123'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html?showComment=1232730900000#c7288503603766057123' title=''/><author><name>David Pérez</name><uri>http://www.blogger.com/profile/08658630846028197392</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-4683890223289512521' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/4683890223289512521' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-1706199420142986648</id><published>2009-01-17T23:29:00.000+05:30</published><updated>2009-01-17T23:29:00.000+05:30</updated><title type='text'>I've enjoyed this tutorial but there is one elemen...</title><content type='html'>I've enjoyed this tutorial but there is one element of the new command framework that you have not covered. I've also searched other resources and have not found my answer. I have also experimented with code and have not solved my  problem. This makes me conclude that the answer is so obvious I can't see it or that there is no answer. Perhaps you can help distinguish.&lt;BR/&gt;&lt;BR/&gt;Using the command framework I have not been able to add, using only  plugin.xml entries, an ability to add toolbar menu items to a specific page of of a pagebook view. The Eclipse PDE implements, in code, various  contributing content outline pages for the outline view. When no editor is  open the outline view has no toolbar items. Depending on the file opened for  edit, the icons in the views toolbar change to suit the file. Can that be  done for a new contributing page using only command framework entries? I  also want to implement the same behavior in my own pagebook views.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/1706199420142986648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/1706199420142986648'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html?showComment=1232215140000#c1706199420142986648' title=''/><author><name>Charles</name><uri>http://www.blogger.com/profile/14025946303723346417</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-4683890223289512521' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/4683890223289512521' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-174612616677814972</id><published>2009-01-17T22:36:00.000+05:30</published><updated>2009-01-17T22:36:00.000+05:30</updated><title type='text'>Oh, one other thing. Key binding could use the sam...</title><content type='html'>Oh, one other thing. Key binding could use the same treatment. It seems that there's no programmatic way to change them, but it would be reassuring to here that from an expert.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/174612616677814972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/174612616677814972'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html?showComment=1232211960000#c174612616677814972' title=''/><author><name>Benson Margulies</name><uri>http://www.blogger.com/profile/12323408246739646407</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-4683890223289512521' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/4683890223289512521' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-6550037840936196850</id><published>2009-01-17T22:35:00.000+05:30</published><updated>2009-01-17T22:35:00.000+05:30</updated><title type='text'>There's also obtaining the command service from th...</title><content type='html'>There's also obtaining the command service from the site, right? Does this automatically scope any changes to the part? If, for example, I want an editor to set some handlers that are only live for that editor, what's the correct procedure?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/6550037840936196850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/6550037840936196850'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html?showComment=1232211900000#c6550037840936196850' title=''/><author><name>Benson Margulies</name><uri>http://www.blogger.com/profile/12323408246739646407</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-4683890223289512521' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/4683890223289512521' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-2306987838298617331</id><published>2009-01-11T04:15:00.000+05:30</published><updated>2009-01-11T04:15:00.000+05:30</updated><title type='text'>Hi Prakash,your HOWTO for the commands is realy go...</title><content type='html'>Hi Prakash,&lt;BR/&gt;your HOWTO for the commands is realy good. So now  I have  changed many actions in my own programm to commands. &lt;BR/&gt;But I have one question, how can I activate / make visible an command in an special perspektive for example "open file" to that i can open an file editor.&lt;BR/&gt;But in other perspectives you dont see this command?&lt;BR/&gt;&lt;BR/&gt;Greetings&lt;BR/&gt;Heiko</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/2306987838298617331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/4683890223289512521/comments/default/2306987838298617331'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html?showComment=1231627500000#c2306987838298617331' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2009/01/commands-part-4-misc-items.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-4683890223289512521' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/4683890223289512521' type='text/html'/></entry></feed>