From: Geneviève Bastien Date: Fri, 1 Mar 2013 16:50:39 +0000 (-0500) Subject: tmf: Call parent before CtfTmfTrace specific initialization X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=32c16b5015d3bc186bdf5c62da310e4db65b3789;p=deliverable%2Ftracecompass.git tmf: Call parent before CtfTmfTrace specific initialization Some features need to have resources initialized before the CtfTmfTrace starts fetching its events. Change-Id: If3d638263713064e8b4be4e651e4e0e33c734e4e Signed-off-by: Geneviève Bastien Reviewed-on: https://git.eclipse.org/r/10783 Tested-by: Hudson CI Reviewed-by: Bernd Hufmann IP-Clean: Bernd Hufmann Tested-by: Bernd Hufmann Reviewed-by: Alexandre Montplaisir Tested-by: Alexandre Montplaisir IP-Clean: Alexandre Montplaisir --- diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java index c7981f683a..d81825d3a3 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java @@ -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)