xy:[Bug 564147] Get the legend of XY Tree viewer by ID instead of name
Now that the ID is the main key to get the style from, the legend of the
select tree viewer is fetched by ID instead of name.
[Changed] Legend of select tree viewer is fetched by ID instead of name
Change-Id: I82518e644b4fc7d6444602d170bc5c9a0749027c
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/164578
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org>
diff --git a/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/viewers/tree/AbstractSelectTreeViewer.java b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/viewers/tree/AbstractSelectTreeViewer.java
index 8c4b08e..4006eef 100644
--- a/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/viewers/tree/AbstractSelectTreeViewer.java
+++ b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/viewers/tree/AbstractSelectTreeViewer.java
@@ -174,7 +174,7 @@
TmfGenericTreeEntry<TmfTreeDataModel> genericEntry = (TmfGenericTreeEntry<TmfTreeDataModel>) element;
TmfTreeDataModel model = genericEntry.getModel();
if (model.hasRowModel()) {
- return getLegendImage(String.valueOf(genericEntry.getModel().getId()));
+ return getLegendImage(genericEntry.getModel().getId());
}
}
return null;