Skip to main content


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 08:23 Go to next message
JianHui Lin is currently offline JianHui LinFriend
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 14:49 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 493
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 09:02 Go to previous message
JianHui Lin is currently offline JianHui LinFriend
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: Fri Apr 19 08:21:21 GMT 2024

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

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

Back to the top