From: Geneviève Bastien Date: Mon, 13 Mar 2017 15:48:10 +0000 (-0400) Subject: charts: Update label display when populating (bug 517600) X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=434926a674147c49fa35cf7b577fc20f61f46c6f;p=deliverable%2Ftracecompass.git charts: Update label display when populating (bug 517600) If labels are long, they need to be truncated to avoid taking too much real estate in the chart. But the resize was called only when the control was resized and not when being populated. Change-Id: I3f25e4ba065678d0e7697702d7083e0a4ace62cb Signed-off-by: Geneviève Bastien Reviewed-on: https://git.eclipse.org/r/92952 Reviewed-by: Matthew Khouzam Reviewed-by: Hudson CI --- diff --git a/tmf/org.eclipse.tracecompass.tmf.chart.ui/src/org/eclipse/tracecompass/internal/tmf/chart/ui/swtchart/SwtXYChartViewer.java b/tmf/org.eclipse.tracecompass.tmf.chart.ui/src/org/eclipse/tracecompass/internal/tmf/chart/ui/swtchart/SwtXYChartViewer.java index 27d1b9d3d0..a6dd970ace 100644 --- a/tmf/org.eclipse.tracecompass.tmf.chart.ui/src/org/eclipse/tracecompass/internal/tmf/chart/ui/swtchart/SwtXYChartViewer.java +++ b/tmf/org.eclipse.tracecompass.tmf.chart.ui/src/org/eclipse/tracecompass/internal/tmf/chart/ui/swtchart/SwtXYChartViewer.java @@ -295,6 +295,7 @@ public abstract class SwtXYChartViewer extends TmfViewer implements IChartViewer /* Refresh the titles to fit the current chart size */ refreshDisplayTitles(); + refreshDisplayLabels(); } /**