Community
Participate
Working Groups
Before, there would be a way to get the image from a path like /trace/category/counter. Now it throws an NPE. The behavior is "desired" but harsh for extenders. I recommend a slight roll-back here.
Could you please provide some stack traces of that NPE?
I think the problem is as such: A plug-in extension has a TmfChartView that has its own TreeLabelProvider that gets the legend image by name. This eventually gets to XYPresentationProvider.getAppearance() which assigns a sequential id to this series appearance in the fStringToId map, and uses this id to put in fYAppearances map. On the chart side, with the new changes XYPresentationProvider.getSeriesStyle() is called with the real model id. As it doesn't match the id assigned to the tree legend, a new appearance is created, and the color in tree legend and chart do not match. This can be fixed in the plug-in extension (for example by letting it use the new default DataProviderTreeLabelProvider), but it means that the recent changes introduced in and around https://git.eclipse.org/r/159345 are not backward compatible.