Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Setting State of Actions and Menu Items
Setting State of Actions and Menu Items [message #435874] Thu, 25 August 2005 14:48 Go to next message
Bill Snyder is currently offline Bill SnyderFriend
Messages: 34
Registered: July 2009
Member
Hello,

Is there an 'easy' way to get and instance of an action from within an
RCP/Plugin application and set its state? I am using an ActionSet to
contribute to the menu bar and I want to get instances of these actions.

I am looking at this thread :
http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/m sg05874.html

and this one:
http://dev.eclipse.org/newslists/news.eclipse.platform.swt/m sg08402.html

From what I understand here, if I am using ActionSet actions, I have to
make them retargetable and manually register them within the code. Is this
the only way to get access to the instance of the action?

Thanks!

--Bill
Re: Setting State of Actions and Menu Items [message #435959 is a reply to message #435874] Fri, 26 August 2005 07:23 Go to previous message
Michael Illgner is currently offline Michael IllgnerFriend
Messages: 35
Registered: July 2009
Member
Bill Snyder wrote:
> Hello,
>
> Is there an 'easy' way to get and instance of an action from within an
> RCP/Plugin application and set its state? I am using an ActionSet to
> contribute to the menu bar and I want to get instances of these actions.
>

I looking for this too,
one solution is to define your actions "globally" in the
WorkbenchAdvisor, the other way is to define view specific retargetable
actions. But it is not possible to define actions common to some views
(e.g. in a perspective) and to get a reference to this actions.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=106750
Previous Topic:update Manager - DeltaInstallHandler
Next Topic:Intro shown on every startup of RCP
Goto Forum:
  


Current Time: Thu Dec 26 11:16:49 GMT 2024

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

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

Back to the top