Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 88736 - AdapterFactoryProxy is too lazy about startup
Summary: AdapterFactoryProxy is too lazy about startup
Status: RESOLVED DUPLICATE of bug 82973
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-runtime-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-22 09:14 EST by Craig Setera CLA
Modified: 2005-03-22 10:04 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Setera CLA 2005-03-22 09:14:11 EST
The current implementation of AdapterFactoryProxy is too lazy/paranoid in its
attempt to not start up the bundle to answer requests.  

We have an RCP application that has a tree viewer.  That tree viewer uses
IWorkbenchAdapter instances to query labels and images from registered tree
nodes in other plugins.  These adapter factories are registered via plugin.xml
and therefore have an associated instance of AdapterFactoryProxy.  We are seeing
that the icons and labels are not displaying in the tree view because the
#loadFactory(boolean force) method will not attempt to load the real adapter
factory if the bundle is has not already been started.  Because we have not yet
loaded any other code in this bundle yet, the bundle has not been started and we
get no adapter and thus no images/labels.  This seems completely wrong.  If the
proxy needs to start the bundle in order to access the adapter factory, then it
should just do it.  In theory, a user could choose to create plugin with nothing
but adapter factory instances and no other code.  In this case, the adapter
factory proxy would never start the bundle and no other code would start it either.

The bundle should always be started if it is necessary for the adapter factory
to be accessed.  We are now having to force start the bundle from another plugin
which is bad form and completely wrong.
Comment 1 John Arthorne CLA 2005-03-22 10:04:46 EST

*** This bug has been marked as a duplicate of 82973 ***