<?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.post7022191035441814296..comments</id><updated>2011-01-07T19:49:56.558+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 5: Authentication in RCP application...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.eclipse-tips.com/feeds/7022191035441814296/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.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>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-7849711494516874855</id><published>2011-01-07T19:49:56.558+05:30</published><updated>2011-01-07T19:49:56.558+05:30</updated><title type='text'>Hello Prakash,

I have created a custom GEF editor...</title><content type='html'>Hello Prakash,&lt;br /&gt;&lt;br /&gt;I have created a custom GEF editor and intend to add figures to the editor using context menu of the editor instead of the Palette. However, I am not able to understand how to go about it. Can you please guide me with the same?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/7849711494516874855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/7849711494516874855'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1294409996558#c7849711494516874855' title=''/><author><name>Kats</name><uri>http://www.blogger.com/profile/01999348519343900264</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='24' src='http://2.bp.blogspot.com/_1SHlTuHKvzI/SloEKwy20aI/AAAAAAAAA1o/LY03mQNvX7A/S220/DSCN1253.JPG'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1540507615'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-7748473982467010268</id><published>2010-11-05T15:39:11.523+05:30</published><updated>2010-11-05T15:39:11.523+05:30</updated><title type='text'>Hi Prakash, 
So nice to get your mail.
For the ben...</title><content type='html'>Hi Prakash, &lt;br /&gt;So nice to get your mail.&lt;br /&gt;For the benefit of community I am posting solution here.  &lt;br /&gt;I did some research in my problem, below solution worked greatly.&lt;br /&gt;&lt;br /&gt;regards&lt;br /&gt;Parvez Ahmad Hakim&lt;br /&gt;Srinagar Kashmir &lt;br /&gt;parvez12@gmail.com&lt;br /&gt;&lt;br /&gt;public class OpenHandler extends AbstractHandler {&lt;br /&gt;&lt;br /&gt; @Override&lt;br /&gt; public Object execute(ExecutionEvent event) throws ExecutionException {&lt;br /&gt;  execute();&lt;br /&gt;  return null;&lt;br /&gt; }&lt;br /&gt; @Execute&lt;br /&gt; public void execute() {&lt;br /&gt; // my code... Ahmad&lt;br /&gt;  }&lt;br /&gt; &lt;br /&gt; @CanExecute&lt;br /&gt; public boolean canExecute() {&lt;br /&gt;  //TODO Your code goes here&lt;br /&gt;  return true;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mnuOpen.addSelectionListener(new SelectionAdapter() {&lt;br /&gt;   public void widgetSelected(SelectionEvent e) { &lt;br /&gt;    executeCommand(OpenHandler.class,true);&lt;br /&gt;   }&lt;br /&gt;  });&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public void executeCommand(Class cmdHandler, Boolean showBusy) {&lt;br /&gt;  // Hint taken from  http://wiki.eclipse.org/E4/Snippets&lt;br /&gt;  &lt;br /&gt;  try {&lt;br /&gt;   Bundle bundle = FrameworkUtil.getBundle(cmdHandler);&lt;br /&gt;   BundleContext bundleContext = bundle.getBundleContext();&lt;br /&gt;   IEclipseContext eclipseCtx = EclipseContextFactory.getServiceContext(bundleContext);   &lt;br /&gt;   ECommandService commandService = eclipseCtx.get(ECommandService.class);&lt;br /&gt;   EHandlerService handlerService = eclipseCtx.get(EHandlerService.class);   &lt;br /&gt;   Command cmd  = commandService.getCommand(cmdHandler.getName());&lt;br /&gt;   cmd.setHandler((IHandler) cmdHandler.newInstance());   &lt;br /&gt;   cmd.execute(null);&lt;br /&gt;   System.out.println(&amp;quot;command executed :&amp;quot; + cmdHandler.getName());&lt;br /&gt;   //ParameterizedCommand myCommand = commandService.createCommand(command, null);&lt;br /&gt;   //Object result = handlerService.executeHandler(myCommand);&lt;br /&gt;   //handlerService =  (IHandlerService ) PlatformUI.getWorkbench().getService(IHandlerService.class);&lt;br /&gt;   //handlerService.executeCommand(command, null);&lt;br /&gt;  }catch(NotHandledException ex){&lt;br /&gt;   throw new RuntimeException(&amp;quot;Failed to execute command --&amp;quot; + cmdHandler.getName() + &amp;quot; &amp;quot; + ex.getMessage());&lt;br /&gt;  &lt;br /&gt;  }catch (Exception ex) { &lt;br /&gt;   throw new RuntimeException(&amp;quot;Failed to execute command --&amp;quot;+cmdHandler.getName() +&amp;quot; Error:&amp;quot; + ex.getMessage());&lt;br /&gt;  }finally{&lt;br /&gt;   &lt;br /&gt;  } &lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;Alternative solution is:- &lt;br /&gt; public void executeCommand(String command) {&lt;br /&gt;  &lt;br /&gt;  //IHandlerService handlerService = (IHandlerService) parentViewGetSite&lt;br /&gt;   // .getService(IHandlerService.class);&lt;br /&gt;  Bundle bundle = FrameworkUtil.getBundle(IEvaluationService.class);&lt;br /&gt;  BundleContext bundleContext = bundle.getBundleContext();&lt;br /&gt;  IEclipseContext eclipseCtx = EclipseContextFactory.getServiceContext(bundleContext);   &lt;br /&gt;  ECommandService commandService = eclipseCtx.get(ECommandService.class);&lt;br /&gt;  try {&lt;br /&gt;   commandService.getCommand(command).execute(null);&lt;br /&gt;  }catch(NotHandledException ex){&lt;br /&gt;   throw new RuntimeException(&amp;quot;Failed to execute command --&amp;quot; + command + &amp;quot; &amp;quot; + ex.getMessage());&lt;br /&gt;  }&lt;br /&gt;  catch (Exception ex) {&lt;br /&gt;   throw new RuntimeException(&amp;quot;Failed to execute command --&amp;quot; + command);&lt;br /&gt;  }finally{&lt;br /&gt;   &lt;br /&gt;  } &lt;br /&gt; }</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/7748473982467010268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/7748473982467010268'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1288951751523#c7748473982467010268' title=''/><author><name>Ahmad</name><uri>http://www.blogger.com/profile/05072112154906382015</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/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-304675304'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-1493523681693204387</id><published>2010-11-04T10:54:14.456+05:30</published><updated>2010-11-04T10:54:14.456+05:30</updated><title type='text'>In e4, you don&amp;#39;t need to have a serviceLocator...</title><content type='html'>In e4, you don&amp;#39;t need to have a serviceLocator. You can make a service as a field and mark it with @Inject. The DI mechanism will find you the service in the context hierarchy and then inject an implementation of the service into that field. I suggest you go thru some e4 docs and e4 forums.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/1493523681693204387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/1493523681693204387'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1288848254456#c1493523681693204387' 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/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' 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-4397851468680389223</id><published>2010-11-04T00:52:26.099+05:30</published><updated>2010-11-04T00:52:26.099+05:30</updated><title type='text'>Hi Prakash
Struggling since morning
for injection ...</title><content type='html'>Hi Prakash&lt;br /&gt;Struggling since morning&lt;br /&gt;for injection in e4 eclipse,&lt;br /&gt; I want to execute a command, I have null for PlatformUI.getSite()&lt;br /&gt;&lt;br /&gt;My problem is basically getting the workbench.&lt;br /&gt;PlatformUI.getWorkbench and getsite is null because I am invoking the plugin using injection&lt;br /&gt;&lt;br /&gt;My case is Project A contains normal workbench &lt;br /&gt;class, project B calls A using injection &lt;br /&gt;So I want to execute the command defined in plugin.xml in A&lt;br /&gt;I was earlier using PlatFormUI.getWorkbench to call command using Ihandler &lt;br /&gt;&lt;br /&gt;, that now returns work bench is not created.&lt;br /&gt;ICommandService commandService = (ICommandService.class)serviceLocator.getService(ICommandService.class);&lt;br /&gt;commandService.refreshElements(commandId, null);&lt;br /&gt;&lt;br /&gt;can you mention exact code for &lt;br /&gt;serviceLocator, like how to get it while another project is injected&lt;br /&gt;&lt;br /&gt;Parvez Ahmad Hakim&lt;br /&gt;Srinagar Kashmir</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/4397851468680389223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/4397851468680389223'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1288812146099#c4397851468680389223' title=''/><author><name>Ahmad</name><uri>http://www.blogger.com/profile/05072112154906382015</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/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-304675304'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-1237829267416691254</id><published>2010-08-31T14:22:11.753+05:30</published><updated>2010-08-31T14:22:11.753+05:30</updated><title type='text'>Hi Prakash, is there any way we can get the callba...</title><content type='html'>Hi Prakash, is there any way we can get the callback to the command handler whenever a main menu (in this case File menu) is selected? &lt;br /&gt;I want to enable/disable the command (Login) based on some other criteria (other than selection change) and I want the callback to isEnabled() method, once I click File main menu.&lt;br /&gt;&lt;br /&gt;Thanks</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/1237829267416691254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/1237829267416691254'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1283244731753#c1237829267416691254' 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/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-35054373'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-1414384556147486381</id><published>2010-05-14T05:59:01.505+05:30</published><updated>2010-05-14T05:59:01.505+05:30</updated><title type='text'>Thanks a lot Prakash!
great instructions for this ...</title><content type='html'>Thanks a lot Prakash!&lt;br /&gt;great instructions for this common issue.&lt;br /&gt;&lt;br /&gt;I owe you much ;)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/1414384556147486381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/1414384556147486381'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1273796941505#c1414384556147486381' 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/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-980970534'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-7731556514534397624</id><published>2010-04-27T21:43:33.271+05:30</published><updated>2010-04-27T21:43:33.271+05:30</updated><title type='text'>@pixelatedpete,
   Also if you need any reference ...</title><content type='html'>@pixelatedpete,&lt;br /&gt;   Also if you need any reference on existing source provider implementation, you can have a look at Platform UI&amp;#39;s WorkbenchSourceProvider</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/7731556514534397624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/7731556514534397624'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1272384813271#c7731556514534397624' 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/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' 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-1064778667438464947</id><published>2010-04-27T21:32:31.068+05:30</published><updated>2010-04-27T21:32:31.068+05:30</updated><title type='text'>Thanks for a useful set of posts! I&amp;#39;ve finally...</title><content type='html'>Thanks for a useful set of posts! I&amp;#39;ve finally managed to get my commands turning on and off on the basis on a selection that isn&amp;#39;t active! Phew!&lt;br /&gt;&lt;br /&gt;There seems the be a type in SessionSourceProvider (probably not a surprise given your reply to another comment like this...) but:&lt;br /&gt;&lt;br /&gt;fireSourceChanged(ISources.WORKBENCH, SESSION_STATE, currentState); &lt;br /&gt;&lt;br /&gt;either needs to be:&lt;br /&gt;&lt;br /&gt;fireSourceChanged(ISources.WORKBENCH, getCurrentState()); &lt;br /&gt;&lt;br /&gt;(which is to say return all the variable this provider sets) or you need to make &amp;quot;currentState&amp;quot; a member variable.&lt;br /&gt;&lt;br /&gt;Hope that helps folks what come here after me! :-)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/1064778667438464947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/1064778667438464947'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1272384151068#c1064778667438464947' title=''/><author><name>pixelatedpete</name><uri>http://www.blogger.com/profile/01298274275234137603</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/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2098716928'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-8592237250487361476</id><published>2009-10-23T13:17:30.709+05:30</published><updated>2009-10-23T13:17:30.709+05:30</updated><title type='text'>Thanks so much Prakash for such an elaborate and e...</title><content type='html'>Thanks so much Prakash for such an elaborate and easy-to-understand write-up on this topic. It helped me a lot.&lt;br /&gt;Thanks.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/8592237250487361476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/8592237250487361476'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1256284050709#c8592237250487361476' title=''/><author><name>kaprasanna</name><uri>http://www.blogger.com/profile/12461496707798851788</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/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-633382377'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-4371504812862247193</id><published>2009-10-11T22:14:54.567+05:30</published><updated>2009-10-11T22:14:54.567+05:30</updated><title type='text'>@Sergey Khorev,
   You can find it here: http://bl...</title><content type='html'>@Sergey Khorev,&lt;br /&gt;   You can find it here: http://blog.eclipse-tips.com/2009/01/commands-part-2-selection-and.html</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/4371504812862247193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/4371504812862247193'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1255279494567#c4371504812862247193' 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/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' 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-5402355272493767440</id><published>2009-10-11T20:43:14.683+05:30</published><updated>2009-10-11T20:43:14.683+05:30</updated><title type='text'>Hi,

You are writing &amp;quot;See my earlier tip on C...</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;You are writing &amp;quot;See my earlier tip on Command Framework for more explanation on this priority attribute.&amp;quot; Unfortunately I was not able to find the tip, can you direct me?&lt;br /&gt;I am trying to create view-local variable using this attribute (trying to substitute activePartId value), is it possible?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/5402355272493767440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/5402355272493767440'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1255273994683#c5402355272493767440' title=''/><author><name>Sergey Khorev</name><uri>http://www.blogger.com/profile/01630597711148348466</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/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-761400989'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-1859210533155937614</id><published>2009-07-20T10:04:14.002+05:30</published><updated>2009-07-20T10:04:14.002+05:30</updated><title type='text'>@Edvin Syse,
    Thanks for the pointer. I&amp;#39;m l...</title><content type='html'>@Edvin Syse,&lt;br /&gt;    Thanks for the pointer. I&amp;#39;m little over confident and many time I write code directly in the blogger. Sometimes these errors happen :-(</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/1859210533155937614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/1859210533155937614'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1248064454002#c1859210533155937614' 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/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' 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-941899804407388858</id><published>2009-07-19T12:20:53.748+05:30</published><updated>2009-07-19T12:20:53.748+05:30</updated><title type='text'>In the getCurrentState() method you have named bot...</title><content type='html'>In the getCurrentState() method you have named both the Map and the String variable &amp;#39;currentState&amp;#39; :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/941899804407388858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/941899804407388858'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1247986253748#c941899804407388858' title=''/><author><name>Edvin Syse</name><uri>https://sysedata.no</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://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/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-721546053'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-6268735044722188191</id><published>2009-03-23T17:14:00.000+05:30</published><updated>2009-03-23T17:14:00.000+05:30</updated><title type='text'>I like your example but you cover Authetication on...</title><content type='html'>I like your example but you cover Authetication only.&lt;BR/&gt;Often it is coupled with Authorization for particular functions as well, and the actions for functions not allowed should be hidden.&lt;BR/&gt;I did a similar thing for an Eclipse 3.2 based RCP application using an IActionFilter to hide the actions not allowed.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/6268735044722188191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/6268735044722188191'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1237808640000#c6268735044722188191' title=''/><author><name>Maarten Meijer</name><uri>http://www.blogger.com/profile/05900699818398561644</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='24' src='http://4.bp.blogspot.com/_j0a2Zacz7c0/ScIFSmM5UPI/AAAAAAAADBI/0gO0Q5NsOe8/S220/1fdf989.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1983119268'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-264499397648000590</id><published>2009-02-24T13:46:00.000+05:30</published><updated>2009-02-24T13:46:00.000+05:30</updated><title type='text'>Yes, the extension point is from 3.4 only. You can...</title><content type='html'>Yes, the extension point is from 3.4 only. You can add target Eclipse version.&lt;BR/&gt;&lt;BR/&gt;Please send a mail to me (grprakash@gmail.com) after publishing the translated entries. I'll update the original blog entry, so that people who come to my blog know about the translation and visit your page.&lt;BR/&gt;&lt;BR/&gt;Again, thanks for your time in translating this.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/264499397648000590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/264499397648000590'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1235463360000#c264499397648000590' 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/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' 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-1486376190671674169</id><published>2009-02-24T13:39:00.000+05:30</published><updated>2009-02-24T13:39:00.000+05:30</updated><title type='text'>O.K. I'll start to translate your great entries.I ...</title><content type='html'>O.K. I'll start to translate your great entries.I must to link your great entries.But I don't use your pictures, because I hope my page visitors to move to your blog my translated entries.If my visitors want to see the pictures, they move to your blog!&lt;BR/&gt;&lt;BR/&gt;Come to think of it,The extension point "org.eclipse.ui.services" is new extension point.(since 3.4 Ganymede release). &lt;BR/&gt;I would like to write about target Eclipse version at your entry.How do you think about it?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/1486376190671674169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/1486376190671674169'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1235462940000#c1486376190671674169' title=''/><author><name>Hiroki Kondo(kompiro)</name><uri>http://www.blogger.com/profile/10730042929073818285</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='02708609223827296716'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://bp3.blogger.com/_hTf_YhoVHDo/SA3bzJn4KYI/AAAAAAAAAAc/j7tjg2ezwek/S220/kondo_hiroki.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-425699672'/></entry><entry><id>tag:blogger.com,1999:blog-1557780184357927241.post-8424073298410822012</id><published>2009-02-24T08:05:00.000+05:30</published><updated>2009-02-24T08:05:00.000+05:30</updated><title type='text'>@Hiroki Kondo(kompiro)&lt;br&gt;   You don't have to ask...</title><content type='html'>@Hiroki Kondo(kompiro)&lt;BR/&gt;   You don't have to ask me everytime for translating :-) You can translate any of my posts, just remember to give a link back to the original post from the translated one.&lt;BR/&gt;&lt;BR/&gt;   Thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/8424073298410822012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/8424073298410822012'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1235442900000#c8424073298410822012' 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/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' 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-1257656426870898246</id><published>2009-02-24T06:35:00.000+05:30</published><updated>2009-02-24T06:35:00.000+05:30</updated><title type='text'>WoW,This is a great series, too!Because I want to ...</title><content type='html'>WoW,This is a great series, too!Because I want to do same things,"How do I implement login and logout menu?" This is very important things to develop Plug-ins. How do you find it?&lt;BR/&gt;And I would like to translate this series to Japanese.&lt;BR/&gt;Please allow me to translate your great article.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/1257656426870898246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1557780184357927241/7022191035441814296/comments/default/1257656426870898246'/><link rel='alternate' type='text/html' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html?showComment=1235437500000#c1257656426870898246' title=''/><author><name>Hiroki Kondo(kompiro)</name><uri>http://www.blogger.com/profile/10730042929073818285</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='02708609223827296716'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://bp3.blogger.com/_hTf_YhoVHDo/SA3bzJn4KYI/AAAAAAAAAAc/j7tjg2ezwek/S220/kondo_hiroki.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.eclipse-tips.com/2009/02/commands-part-5-authentication-in-rcp.html' ref='tag:blogger.com,1999:blog-1557780184357927241.post-7022191035441814296' source='http://www.blogger.com/feeds/1557780184357927241/posts/default/7022191035441814296' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-425699672'/></entry></feed>
