xml: Fix behavior of time graph view for experiment analyses
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Wed, 27 Jul 2016 14:00:37 +0000 (10:00 -0400)
committerGenevieve Bastien <gbastien+lttng@versatic.net>
Thu, 28 Jul 2016 12:40:49 +0000 (08:40 -0400)
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 <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/77984
Reviewed-by: Hudson CI
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.analysis.xml.ui/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/ui/views/timegraph/XmlTimeGraphView.java

index 54add752e09085606b87355b7eb7fe80a4a19f3a..0f1b9dcd90b024b69188238e251b2d7e2338edbf 100644 (file)
@@ -570,4 +570,13 @@ public class XmlTimeGraphView extends AbstractTimeGraphView {
         return Collections.EMPTY_LIST;
     }
 
+    @Override
+    protected @NonNull Iterable<ITmfTrace> getTracesToBuild(@NonNull ITmfTrace trace) {
+        /*
+         * Return the current trace only. Experiments will return their
+         * children's analyses
+         */
+        return Collections.singleton(trace);
+    }
+
 }
This page took 0.025648 seconds and 5 git commands to generate.