SWT!
: GUI, , .
, - , , .
: :
Display.getDefautl().syncExec(new Runnable() {
public void run() {
}
}
Display.getDefautl().asyncExec(new Runnable() {
public void run() {
}
}
In the first case, execution is synchronous. The calling thread is waiting for the execution method to complete. In the second case, the calling thread does not wait.
To learn more about threads in an Eclipse application, look at the stack in your Debug view (in debug mode). The first thread, called the Main thread, is the user interface thread.
source
share