Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ProgressMonitorDialog (ProgressMonitorDialog throwing Display#sleep() not supported in current operation mode.)
ProgressMonitorDialog [message #1411363] Sat, 23 August 2014 04:37 Go to next message
Dave Smith is currently offline Dave SmithFriend
Messages: 34
Registered: July 2009
Member
I am trying to use ProgressMonitorDialog as

ProgressMonitorDialog d = new ProgressMonitorDialog(shell);
d.run(true,true,myIRunnableWithProgress);

I would expect this code to spawn a server push session run the whole request in a background thread and return. Instead it calls ModalContext.run() which then in turn
creates a ModalThread

t = new ModalContextThread(operation, monitor, display);

then starts the thread and then calls t.block();

block() grabs the event loop

try {
if (!display.readAndDispatch()) {
display.sleep();
}
exceptionCount = 0;
}
which is still on the UI thread thus the error, and more importantly my dialog box does not appear.

What am I doing wrong?
Re: ProgressMonitorDialog [message #1415743 is a reply to message #1411363] Wed, 03 September 2014 13:55 Go to previous message
Dave Smith is currently offline Dave SmithFriend
Messages: 34
Registered: July 2009
Member
It's a bug. I opened a ticket


https://bugs.eclipse.org/bugs/show_bug.cgi?id=443218
Previous Topic:[ANN] RAP 2.3.1RC1 and RAP 3.0.0M1
Next Topic:EMF BasicCommandStackListener in multi instances RAP APP.
Goto Forum:
  


Current Time: Thu Apr 25 23:30:50 GMT 2024

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

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

Back to the top