Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Plugin.start(final BundleContext context) is not called from UI thread
Plugin.start(final BundleContext context) is not called from UI thread [message #326820] Tue, 01 April 2008 12:11 Go to next message
Eclipse UserFriend
In Eclipse 3.4, this method is no longer called from Main UI thread (as it
used to be in < 3.3)but instead from a worker thread..is this a bug? if
not then the javadocs need to be updated..
Re: Plugin.start(final BundleContext context) is not called from UI thread [message #326832 is a reply to message #326820] Tue, 01 April 2008 14:22 Go to previous message
Eclipse UserFriend
It's not a bug, just a slight change in the startup sequence.

AFAIK the javadoc for
org.osgi.framework.BundleActivator.start(BundleContext) makes no mention
of it starting on the UI thread.

Even the implementation in AbstractUIPlugin posts its refresh action to
the asyncExec(*).

It's just something to be careful of, you can use a WorkbenchJob or
UIJob to post any UI initialization until later in the startup sequence.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm
Previous Topic:menu/toolbar items based on open editor
Next Topic:quick fix popups classes
Goto Forum:
  


Current Time: Mon Mar 24 16:52:05 EDT 2025

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

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

Back to the top