Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to get the state of icons in view toolbar
How to get the state of icons in view toolbar [message #98947] Sat, 19 July 2008 03:33 Go to next message
CAO Dahai is currently offline CAO DahaiFriend
Messages: 16
Registered: July 2009
Junior Member
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()) {
}
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 Go to previous message
Eclipse UserFriend
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()) {
}
Previous Topic:Upload Dialog IE Bug
Next Topic:Problem deploying .war file for tomcat
Goto Forum:
  


Current Time: Fri Apr 26 22:43:07 GMT 2024

Powered by FUDForum. Page generated in 0.03458 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top