Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » how to set the Action enable or disable
how to set the Action enable or disable [message #1086457] Wed, 14 August 2013 04:23 Go to next message
JianHui Lin is currently offline JianHui Lin
Messages: 2
Registered: August 2013
Location: China
Junior Member
I met a problem , i create Actions in the plugin.xml using ActionSet.
i want to make some Action enable or disable in the program, now i got the Action by implements the IActionDelegate2,then create a Static Variable to get the action in init(IAction action) method.
but i don't think it's a good way,so is there any better answer to solve this problem?
Thanks in advance


it's never too old to learn
Re: how to set the Action enable or disable [message #1088077 is a reply to message #1086457] Fri, 16 August 2013 10:49 Go to previous messageGo to next message
Wim Jongman is currently offline Wim Jongman
Messages: 276
Registered: July 2009
Senior Member

Hi JianHui,

Actions are legacy. Use commands and handlers if you can.

Best regards,

Wim
Re: how to set the Action enable or disable [message #1088571 is a reply to message #1088077] Sat, 17 August 2013 05:02 Go to previous message
JianHui Lin is currently offline JianHui Lin
Messages: 2
Registered: August 2013
Location: China
Junior Member
Thanks for reply´╝îi agree with you, i used the acitonset at first ,then found this trouble,i will learn how to use the command to solve this problem

it's never too old to learn
Previous Topic:Lazy Text Decoration
Next Topic:Custom native launcher
Goto Forum:
  


Current Time: Wed Aug 27 13:09:52 EDT 2014

Powered by FUDForum. Page generated in 0.01551 seconds