Then, I need to run the code, just ignore the details of runnable function
But the problem is that I have to run the code in the next file which I am not allowed to choose which one to be executed first.
Display display= new Display();
Then, I got error message.(like invalid thread or when I disposes the display, I got "Failed to execute runnable (org.eclipse.swt.SWTException: Widget is disposed)")
How can I solve the problem or to stop the asynchronization (P.S I am doing testing)
I think he ment the fact that you need the right display to get the right thread.
If the display is not the default one you may have a problem if you are not in the correct thread.
Then again I am not that firm with SWT and there might be a solution to that.
Anyway you should explain a bit better what you want to do.
Please correct my English.
So you made a portal in time and started grabbing people. This tiny ad thinks that's rude:
Free, earth friendly heat - from the CodeRanch trailboss