Problem with showing ProgressMonitorDialog from another modal dialog [message #685418] |
Fri, 17 June 2011 13:27 |
Alexey Romanov Messages: 263 Registered: May 2010 |
Senior Member |
|
|
I have this code called when pressing an OK button on a dialog:
IRunnableWithProgress connecting = new IRunnableWithProgress {...};
ProgressMonitorDialog progressDialog = new ProgressMonitorDialog(getShell());
progressDialog.setCancelable(true);
progressDialog.run(true, true, connecting);
The ProgressMonitorDialog does appear and shows text sent from the IRunnableWithProgress, but it doesn't have a "Cancel" button. In addition, the image on the left side appears only about half the time. What could be the reason? Initially I thought there could be a general problem with showing one modal dialog over another, but calling super.okPressed() first didn't help.
[Updated on: Fri, 17 June 2011 13:28] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03555 seconds