Skip to main content


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 RomanovFriend
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 HoffmannFriend
Messages: 113
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:Is a fixed height view possible?
Next Topic:Problem setup databinding with TableViewer
Goto Forum:
  


Current Time: Thu Apr 25 19:39:19 GMT 2024

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

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

Back to the top