Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Advanced Scripting Environment (EASE) » @WrapToScript inspect environment
@WrapToScript inspect environment [message #1820830] Wed, 29 January 2020 21:37 Go to next message
Gabriel-Andrew Pollo-Guilbert is currently offline Gabriel-Andrew Pollo-GuilbertFriend
Messages: 1
Registered: January 2020
Junior Member
Hi,

I have a use case where Java objects are created in my EASE script using functions annotated with @WrapToScript. These objects need to be cleaned-up when the script is done. Is there any way to inspect the "current script environment" when a function is annotated using @WrapToScript? Or maybe is it possible to subscribe to an event telling me that the script is done executing?

Thank you
Re: @WrapToScript inspect environment [message #1821037 is a reply to message #1820830] Tue, 04 February 2020 17:05 Go to previous message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 250
Registered: July 2009
Location: Graz, Austria
Senior Member
We had that question on the mailing list. Just for completeness, here is the response:

let your module inherit from org.eclipse.ease.modules.AbstractScriptModule. The initialize method will automatically by called when the module gets loaded in your engine. Then you have access to the script engine using getScriptEngine(). Add engine listeners to get informed of script executions and terminations.
Previous Topic:Sending Arguments to Python Script
Next Topic:Access classes from other eclipse plugins
Goto Forum:
  


Current Time: Tue Oct 08 19:40:14 GMT 2024

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

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

Back to the top