From: Geneviève Bastien Date: Wed, 27 Jul 2016 14:00:37 +0000 (-0400) Subject: xml: Fix behavior of time graph view for experiment analyses X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=9f054bf6a8cecb7b0f7af599a11cb5caf698a0fb;p=deliverable%2Ftracecompass.git xml: Fix behavior of time graph view for experiment analyses Reverts part of commit f3dac92a8f96850f47c1be3279cdab71b8857b65 which was reverting another commit When an XML analysis is for an experiment, the time graph view remains empty because the view is never built with the experiment, only with its children Change-Id: Ib3d12fc6765cdd66a5846950b032240e1add7496 Signed-off-by: Geneviève Bastien Reviewed-on: https://git.eclipse.org/r/77984 Reviewed-by: Hudson CI Tested-by: Jean-Christian Kouame --- diff --git a/tmf/org.eclipse.tracecompass.tmf.analysis.xml.ui/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/ui/views/timegraph/XmlTimeGraphView.java b/tmf/org.eclipse.tracecompass.tmf.analysis.xml.ui/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/ui/views/timegraph/XmlTimeGraphView.java index 54add752e0..0f1b9dcd90 100644 --- a/tmf/org.eclipse.tracecompass.tmf.analysis.xml.ui/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/ui/views/timegraph/XmlTimeGraphView.java +++ b/tmf/org.eclipse.tracecompass.tmf.analysis.xml.ui/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/ui/views/timegraph/XmlTimeGraphView.java @@ -570,4 +570,13 @@ public class XmlTimeGraphView extends AbstractTimeGraphView { return Collections.EMPTY_LIST; } + @Override + protected @NonNull Iterable getTracesToBuild(@NonNull ITmfTrace trace) { + /* + * Return the current trace only. Experiments will return their + * children's analyses + */ + return Collections.singleton(trace); + } + }