Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 16:11 Go to next message
Raheel Ashraf is currently offline Raheel AshrafFriend
Messages: 2502
Registered: July 2009
Senior Member
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 18:22 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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: Thu Jul 18 01:12:39 GMT 2024

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

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

Back to the top