Skip to main content



      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
Eclipse UserFriend
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
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Previous Topic:Lazy Text Decoration
Next Topic:Custom native launcher
Goto Forum:
  


Current Time: Sun Mar 16 19:40:34 EDT 2025

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

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

Back to the top