Bug 447193 - Enable transient item providers to be created through adapter factories
Summary: Enable transient item providers to be created through adapter factories
Status: CLOSED WONTFIX
Alias: None
Product: Sphinx
Classification: Automotive
Component: Navigator & Editor Sockets (show other bugs)
Version: 0.8.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Stephan Eberle CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-14 16:28 EDT by Stephan Eberle CLA
Modified: 2024-05-06 23:28 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Eberle CLA 2014-10-14 16:28:11 EDT
= Problem description = 

Transient item providers must be instantiated statefully wrt their target object, i.e., the same transient item provider instance must not be used for multiple target objects. The current approach to achieve this (exemplified in org.eclipse.sphinx.examples.hummingbird10.ide.ui and org.eclipse.sphinx.examples.hummingbird20.ide.ui) is to bypass the adapter factory and create transient item providers directly instead. This requires quite verbose boilerplate logic for keeping track and disposing on transient item providers on the item providers representing their parent objects and implies that the parent item providers get created statefully and can also not be shared among multiple target objects.

= Proposed solution =

* Find a way to create transient item providers statefully through the underlying adapter factory
* Simplify the code of the parent item providers by using the adapter factory to create/retrieve the required transient item providers
Comment 1 Balazs Grill CLA 2024-05-06 23:28:22 EDT
Closed stale issue before migration