|
Re: CNF : tool bar actions [message #521817 is a reply to message #521700] |
Thu, 18 March 2010 19:24 |
Francis Upton IV Messages: 472 Registered: July 2009 Location: Oakland, CA |
Senior Member |
|
|
Yes, you can do this using the action providers extension points and implementing CommonActionProviders which can update their state based on the selection in your CN view.
There are several action provides implemented for the Project Explorer in the org.eclipse.ui.navigator.resources.actions package and these case be used as a place to start.
Another way you can do this is to use the Commands infrastructure to enable the handlers for some of these actions based on an enablement expression that considers the view (your viewpart id) and the current selection. But I'm a little fuzzy on how to do that. I suggest you read about commands and if it's not clear post something that will get Paul Webster's attention and he can help you further.
Platform UI Committer for Common Navigator
http://wiki.eclipse.org/index.php/Common_Navigator_Framework
http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/guide/cnf.htm
|
|
|
Powered by
FUDForum. Page generated in 0.03296 seconds