Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » org.eclipse.ui.startup and threads
org.eclipse.ui.startup and threads [message #448560] Wed, 26 April 2006 08:55 Go to next message
Eclipse UserFriend
Documentation on org.eclipse.ui.startup extension says:

Once the workbench is started, the method earlyStartup() will be called
from a separate thread.

If I have more than one startup class defined, it seems that they are all
started in the same thread, e.g. if one class is blocking (listening to
socket), other won't be started until the first one ends.

Am I right here?

It's not a problem to implement Runnable (or similar) but it is good to
know and the documentation is a little bit vague.

Thanks,
Davor
Re: org.eclipse.ui.startup and threads [message #448592 is a reply to message #448560] Thu, 27 April 2006 08:53 Go to previous message
Eclipse UserFriend
It's done from EarlyStartupRunnable in the org.eclipse.ui.workbench plugin.

You're right the document isn't very explicit. The message they wanted
to give was that your early startup code would not be called in the UI
thread, so if you want to update UI things you would need to take extra
steps.

They are run in a separate thread from the UI thread, but it's actually
a loop that just calls #earlyStartup() on each startup extension element
it can find.

Later,
PW
Previous Topic:Using same composite more than once
Next Topic:Login Plugin
Goto Forum:
  


Current Time: Fri Jul 04 16:34:47 EDT 2025

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

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

Back to the top