tmf: Call parent before CtfTmfTrace specific initialization
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Fri, 1 Mar 2013 16:50:39 +0000 (11:50 -0500)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Mon, 4 Mar 2013 16:38:24 +0000 (11:38 -0500)
Some features need to have resources initialized before the CtfTmfTrace
starts fetching its events.

Change-Id: If3d638263713064e8b4be4e651e4e0e33c734e4e
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/10783
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bhufmann@gmail.com>
IP-Clean: Bernd Hufmann <bhufmann@gmail.com>
Tested-by: Bernd Hufmann <bhufmann@gmail.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>

org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java

index c7981f683a866afbfaa3062619cf6f1adc0d164f..d81825d3a39f6830d5487758d024017505ee126e 100644 (file)
@@ -76,6 +76,8 @@ public class CtfTmfTrace extends TmfTrace implements ITmfEventParser {
          */
         setCacheSize();
 
+        super.initTrace(resource, path, eventType);
+
         @SuppressWarnings("unused")
         CtfTmfEventType type;
 
@@ -103,8 +105,6 @@ public class CtfTmfTrace extends TmfTrace implements ITmfEventParser {
              */
             throw new TmfTraceException(e.getMessage(), e);
         }
-
-        super.initTrace(resource, path, eventType);
     }
 
     /* (non-Javadoc)
This page took 0.025691 seconds and 5 git commands to generate.