Some part of my code that updates UI runs in ExecutorService, i.e:
ExecutorService executor = new ThreadPoolExecutor(1, 1, 1000, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<Runnable>(1000));
Runnable task = new Runnable()
public void run()
IAction action = ...
The code above throws IllegalStateException since it's not running in UI thread but to do so I have to obtain instance of Display using Display.getCurrent() or Display.getDefault() which keeps returning null.
Any ideas ?
Any help would be greatly appreciated.
Thanks & Regards,