|Re: [eclipse-scripting-dev] Running on UI Thread|
A script to accomplish this would currently look like this:
showInfoDialog("Title", "Hello world");
>That script's code comments mention * This script need to be run into the UI (see Thread metadata).}
>So my question is: where can I see the Thread metadata :)
The script metadata is located in the script header comment. One of them is "Thread: UI" which indicates this script to be executed in the context of the UI thread. While the framework in principle supports this feature, it is extremely dangerous and therefore currently disabled. When running in UI there is no means to stop the script, so a wild running or stalled script would kill your running eclipse instance.
Therefore we tried to do all UI related stuff from the java modules by using Display.getDefault().[a]syncExec():
Back to the top