Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366124 - TCFModelProxy won't compile against Platform 3.8M4
Summary: TCFModelProxy won't compile against Platform 3.8M4
Status: RESOLVED FIXED
Alias: None
Product: TCF
Classification: Tools
Component: Debug (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 1.0.0   Edit
Assignee: Project Inbox CLA
QA Contact: Eugene Tarassov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-08 18:29 EST by Pawel Piech CLA
Modified: 2013-06-05 05:42 EDT (History)
1 user (show)

See Also:


Attachments
Patch with fix. (2.47 KB, patch)
2011-12-08 18:29 EST, Pawel Piech CLA
eugene: iplog-
Details | Diff
Fix that will work against 3.7 and 3.8. (2.34 KB, patch)
2011-12-12 14:43 EST, Pawel Piech CLA
no flags Details | Diff
Updated fix that will work against 3.7 and 3.8. (1.86 KB, patch)
2011-12-12 14:46 EST, Pawel Piech CLA
eugene: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Piech CLA 2011-12-08 18:29:26 EST
Created attachment 208130 [details]
Patch with fix.

I just checked in a major refactoring of the flexible hierarchy views in Platform Debug.  In the process, I removed some of the internal interfaces, one of which is used in TCFModelProxy.  Therefore TCF model proxy won't build against Juno starting with M4. The attached patch, uses a new API that replaces the internal method.  The bad news, is that with this patch, the agent won't build or run with Debug Platform pre 3.8M4.  The good news is that the new interface is an actual API and will be maintained.

If you want to keep the code building against with 3.8M4 as well as pre 3.8M4, you can replace the cast to ITreeModelContentProviderTarget with InternalTreeModelViewer instead.  Although, it is also internal and subject to change in future.

I aplogize for the breaking chagnes, they're always painful :-(  For more info on the refactoring, see bug 161435.
Comment 1 Pawel Piech CLA 2011-12-12 14:43:33 EST
Created attachment 208283 [details]
Fix that will work against 3.7 and 3.8.
Comment 2 Pawel Piech CLA 2011-12-12 14:46:59 EST
Created attachment 208284 [details]
Updated fix that will work against 3.7 and 3.8.
Comment 3 Eugene Tarassov CLA 2011-12-12 17:13:04 EST
I have committed the second patch.
Thanks!