Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » How to access execAction() methods from Desktop outer class?(How to access execAction() methods from Desktop outer class?)
How to access execAction() methods from Desktop outer class? [message #1062962] Tue, 11 June 2013 14:29 Go to next message
Ferran Siles Vila is currently offline Ferran Siles VilaFriend
Messages: 11
Registered: March 2013
Junior Member

Hello,

I want to be able to call from Desktop (outer) class to any of its inner classes (sub-widgets)'s execAction() method. Is there any way or ease in Scout framework to do this? Thank you!

Re: How to access execAction() methods from Desktop outer class? [message #1062969 is a reply to message #1062962] Tue, 11 June 2013 14:44 Go to previous messageGo to next message
Ivan Motsch is currently offline Ivan MotschFriend
Messages: 154
Registered: March 2010
Senior Member
first call
IAction action=desktop.findAction(Desktop.FileMenu.ExitMenu.class);

then invoke it using
Action.doAction();



For more sophisitcated use cases you may use
new ActionFinder(Desktop.getActions(),...)
Re: How to access execAction() methods from Desktop outer class? [message #1062988 is a reply to message #1062969] Tue, 11 June 2013 15:50 Go to previous message
Ferran Siles Vila is currently offline Ferran Siles VilaFriend
Messages: 11
Registered: March 2013
Junior Member

Thank you very much, Ivan.
It works for me!

Previous Topic:How to create a Pop Up Form?
Next Topic:Showing all lookupCalls at runtime
Goto Forum:
  


Current Time: Thu Apr 25 06:47:09 GMT 2024

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

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

Back to the top