Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 168376

Summary: Refactor conversion of objects into Mylar internal structures to use adapters
Product: z_Archived Reporter: Willian Mitsuda <wmitsuda>
Component: MylynAssignee: Mylyn Inbox <mylyn-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Willian Mitsuda CLA 2006-12-17 22:42:37 EST
Fork from bug#165088 comment#54:

There are many places inside source code where a selection
is tested against many ifs to extract a common interface.

Make them all adapters would
simplify the code and make it more extensible, e.g., third-parties can expose a adapter
for a proprietary object to some Mylar structure and get integrated "automagically".
Comment 1 Eugene Kuleshov CLA 2006-12-18 17:24:38 EST
We'll also have to provide adapter factory for platform objects, such as Project, Resource, etc...

It also seems like description is over generalized. Currently the most important use case is the actions on some arbitrary selection (elements in the Task List, nodes in Package Explorer, etc).
Comment 2 Mik Kersten CLA 2006-12-18 21:07:03 EST

*** This bug has been marked as a duplicate of bug 107169 ***
Comment 3 Mik Kersten CLA 2006-12-18 21:09:59 EST
Eugene: please consider filing a separate bug for the Platform end of things, assuming you're talking about making IResource's adapt to ITask's.
Comment 4 Eugene Kuleshov CLA 2006-12-18 21:32:34 EST
Not sure if we really need a separate bug for this, since you will have to preserve existing functionality when converting this stuff into adapters.