Pausing and resuming script execution from java

2014-11-24 Thread Nico Krebs | www.mensch-und-maschine.de
Hello, i want a simple way to pause and resume the execution of a script in rhino. i have read the debugger tutorials but it seems a lot of overhead to me to load a full debugger implementation to pause and resume the script execution. so, what needs at least to be done? my scenario script:

Re: Pausing and resuming script execution from java

2014-11-24 Thread Mads Bondo Dydensborg
Hi Nico What stops you from using some kind of event based programming? I reckon you can get some kind of event when the users presses the OK dialog? Regards Mads Mandag 24 november 2014 11:46:18 skrev Nico Krebs | www.mensch-und-maschine.de: Hello, i want a simple way to pause and resume

Re: Pausing and resuming script execution from java

2014-11-24 Thread Martin Blom
Rhino is multithreaded, so just make myDialog.result() block, like on a Future or blocking queue. -- Martin Blom mar...@blom.org 24 nov 2014 kl. 11:46 skrev Nico Krebs | www.mensch-und-maschine.de nicokrebs@googlemail.com: Hello, i want a simple way to pause and resume the

Re: Pausing and resuming script execution from java

2014-11-24 Thread Nico Krebs | www.mensch-und-maschine.de
Hi Mads, yes, event based handling would be an alternative. But the system is big and was previously build on model dialogs wich blocked the interpretation as expected. the windows we needed the user to work with were pushed into the modal dialog. this behaviiour is no longer applicable for

Re: Pausing and resuming script execution from java

2014-11-24 Thread Nico Krebs | www.mensch-und-maschine.de
thnk you Martin! your suggestion sounds quite interesting! my rhino is already runnning in it`s own thread. how can this be done? Martin Blom mailto:mar...@blom.org 24. November 2014 13:03 Rhino is multithreaded, so just make myDialog.result() block, like on a Future or blocking queue.