asyncExec method of UIThreadRunnable takes a VoidResult parameter.
It's useful for running code in UIThread which involves inter thread communication.
VoidResult interface has a method run().
Put the code in run() you want to execute in UI Thread.
for example you want to call setMaximized(..) method on a Shell you can do this.
It's useful for running code in UIThread which involves inter thread communication.
VoidResult interface has a method run().
Put the code in run() you want to execute in UI Thread.
for example you want to call setMaximized(..) method on a Shell you can do this.
No comments:
Post a Comment