Add an output browser for groovy, which is passed to the script into the bindings.
The browser is shown using the menu windows/shows view/other, and in the popup open other/Groovy Output Browser.
For now, only one single browser can be shown.
An handler for this browser is pass through the script bindings under the name browser.
This handler has the setText(String) methods because it should call Display.getCurrent().asyncExec(...) in order to update the SWT composite in the good thread.
An example of non working Demat script (the browser is not able to find the vega javascripts, so @ebocher if you want to fix it...)
Add an output browser for groovy, which is passed to the script into the bindings.
The browser is shown using the menu
windows/shows view/other
, and in the popup openother/Groovy Output Browser
. For now, only one single browser can be shown.An handler for this browser is pass through the script bindings under the name
browser
. This handler has thesetText(String)
methods because it should callDisplay.getCurrent().asyncExec(...)
in order to update the SWT composite in the good thread.An example of non working Demat script (the browser is not able to find the vega javascripts, so @ebocher if you want to fix it...)