Bug 575971 - tmf: Consolidate redundant header and column data descriptor in the TmfTreeModel model
Summary: tmf: Consolidate redundant header and column data descriptor in the TmfTreeMo...
Status: NEW
Alias: None
Product: Tracecompass
Classification: Tools
Component: TMF (show other bugs)
Version: 7.0.0   Edit
Hardware: PC Linux
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Project Inbox CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-14 09:47 EDT by Bernd Hufmann CLA
Modified: 2021-09-14 13:27 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Hufmann CLA 2021-09-14 09:47:19 EDT
The TmfTreeModel implementation has redundant information to provide information about columns: The headers and fColumnDescriptors information are redundant. The list fColumnDescriptors were meant to replace the headers, however the headers haven't not been deprecated due to the impact in Trace Compass. 

Nonetheless, all relevant data providers need to be updated so that the TmfTreeModel returned in query calls (e.g. AbstractTreeDataProvider#getTree()) are constructed with column descriptors instead of using the list of header names.

A deprecation strategy for the list of header names should be provided as well.