Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Problem with showing ProgressMonitorDialog from another modal dialog
Problem with showing ProgressMonitorDialog from another modal dialog [message #685418] Fri, 17 June 2011 13:27 Go to next message
Alexey Romanov is currently offline 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

Re: Problem with showing ProgressMonitorDialog from another modal dialog [message #699484 is a reply to message #685418] Thu, 21 July 2011 16:01 Go to previous message
Mark Hoffmann is currently offline Mark Hoffmann
Messages: 102
Registered: July 2009
Location: Jena
Senior Member
Hi Alexey,

try removing:
progressDialog.setCancelable(true);

You already set cancelable=true as parameter in the run method:
public void run(boolean fork, boolean cancelable,IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException

Regards,
Mark
Previous Topic:Native Mac shell ToolBar with JFace ToolBarManager
Next Topic:Getting info on databinding synchronization / maybe Extending DatabindingContext?
Goto Forum:
  


Current Time: Wed Oct 01 04:01:54 GMT 2014

Powered by FUDForum. Page generated in 0.01965 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software