|
Re: How to get the state of icons in view toolbar [message #99242 is a reply to message #98947] |
Tue, 22 July 2008 09:30 |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
I'm not sure if I understand correctly what you are trying to achieve.
But if you're contributing a view action using the
org.eclipse.ui.viewActions extension in your plugin.xml you may use the
IActionDelegate#selectionChanged() method to react to selection changes
in your view.
Ciao
Frank
-----Ursprüngliche Nachricht-----
Von: Dahai Cao [mailto:dhcao2003@163.com]
Bereitgestellt: Samstag, 19. Juli 2008 05:33
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: How to get the state of icons in view toolbar
Betreff: How to get the state of icons in view toolbar
Hi, I want to add some IContributionItem or action into a view's local
tool bar, I set the icon information into viewActions of plugin.xml.
But how can I get the extension element detail of viewAction and set
their
states?
I hope to change the IContributionItem's state according to selection of
the view. How to use the action?
IContributionItem ci =
getViewSite().getActionBars().getToolBarManager().find();
if (!ci.isEnabled()) {
}
|
|
|
Powered by
FUDForum. Page generated in 0.03458 seconds