Hi,
In my eclipse plugin, what i am trying to do is ask a user if he / she wished to perform an activity through a dialog box. Also, if there is no response from user for say about 3 minutes, I want to perform the activity and close the dialog.
I tried doing the above as follows,
My main
thread creates 2 threads.
1. Thread1 to pop up a dialog and wait for response.
2. Thread2 to sleep for 3 minutes.
In my main thread i have a shared variable which is set by the above threads.
The problem where i am stuck is, once Thread2 wakes up and sets the shared variable and my main thread then see this change, it performs the activity correctly. But since Thread1 is blocked on the open dialog box, i have no way to close the dialog box.
It would be great if some1 could shed some light on this since i m very new to SWT.
Thank you.