Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » UISynchronizer and use32Threading
UISynchronizer and use32Threading [message #625889] Wed, 22 September 2010 06:47 Go to next message
Yury Mising name is currently offline Yury Mising name
Messages: 95
Registered: May 2010
Location: Russia
Member
Hi, All!

I've got the situation that is described in https://bugs.eclipse.org/bugs/show_bug.cgi?id=219913 : have to open Logon dialog when Workbench is still starting. This leads to deadlock, because the Logon dialog is opened in Dispaly.syncExec.
Therefore I have a question: should we define the constant UISynchronizer.use32Threading = true in RAP and use 3.2 threading to done all syncExecs properly while Workbench is starting? If not, I have to search the cause of my problem somewhere else Sad

Best regards,
Yury.
Re: UISynchronizer and use32Threading [message #627181 is a reply to message #625889] Wed, 22 September 2010 18:01 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

Hi Yury,

even if it would solve this problem, switching to 3.2 threading would be
a hack and we'd need very good reasons to do so.

Do you think the solution to bug 182176 could help you? I think we could
easily provide the class DisplayAccess now.

Regards, Ralf

--
Ralf Sternberg

Need professional support for RAP and RCP?
http://www.eclipsesource.com/support/

Twitter: http://twitter.com/eclipsesource
Blog: http://www.eclipsesource.com/blogs/
Re: UISynchronizer and use32Threading [message #627567 is a reply to message #627181] Wed, 22 September 2010 22:26 Go to previous messageGo to next message
Yury Mising name is currently offline Yury Mising name
Messages: 95
Registered: May 2010
Location: Russia
Member
Hi, Ralf!

Yes, I think fixes of the bug 182176 can resolve my problem.
Quote:
New API "org.eclipse.ui.application.DisplayAccess" has been
created. This class has one static method, "accessDisplayDuringStartup()".
Calling this method on any thread not created by the UI (ie: any user Thread)
will allow that thread to access the Display.async() and Display.sync() methods
as if they were one of our privileged startup threads.

That's exactly what I need.

Best regards,
Yury.
Re: UISynchronizer and use32Threading [message #628488 is a reply to message #627567] Thu, 23 September 2010 08:52 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

Hi Yury,

I added a note to bug 309661 to open this API during the workbench
migration. You may set yourself on copy for this bug if you like.

Regards, Ralf

--
Ralf Sternberg

Need professional support for RAP and RCP?
http://www.eclipsesource.com/support/

Twitter: http://twitter.com/eclipsesource
Blog: http://www.eclipsesource.com/blogs/
Re: UISynchronizer and use32Threading [message #628763 is a reply to message #628488] Fri, 24 September 2010 00:39 Go to previous message
Yury Mising name is currently offline Yury Mising name
Messages: 95
Registered: May 2010
Location: Russia
Member
Thanks for response, Ralf!

Best regards,
Yury.
Previous Topic:Animations
Next Topic:Dispose all WizardRegistry on Workbench.shutdown()
Goto Forum:
  


Current Time: Wed Aug 20 14:49:49 EDT 2014

Powered by FUDForum. Page generated in 0.01534 seconds