Minor API improvements
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.core / src / org / eclipse / linuxtools / internal / lttng / core / trace / LTTngTextTrace.java
index 7a970c1a575d51995a77a462c94e1089cf48bc24..0fc81a174c024fe024ade9197206dcbc5241b35a 100644 (file)
@@ -17,6 +17,7 @@ import java.io.FileReader;
 import java.io.IOException;
 import java.util.HashMap;
 
+import org.eclipse.core.resources.IProject;
 import org.eclipse.core.resources.IResource;
 import org.eclipse.linuxtools.internal.lttng.core.event.LttngEvent;
 import org.eclipse.linuxtools.internal.lttng.core.event.LttngEventContent;
@@ -82,7 +83,7 @@ public class LTTngTextTrace extends TmfTrace<LttngEvent> implements ITmfEventPar
 //            fCheckpoints.add(new TmfCheckpoint(new LttngTimestamp(0L), new TmfLocation<Long>(0L)));
             ITmfContext context = new TmfContext(new TmfLocation<Long>(0L), 0);
             fIndexer.updateIndex(context, new LttngTimestamp(0L));
-            fParser = (ITmfEventParser) this;
+            fParser = (ITmfEventParser<LttngEvent>) this;
             //         }
             //         else {
             //                 indexTrace(true);
@@ -418,6 +419,14 @@ public class LTTngTextTrace extends TmfTrace<LttngEvent> implements ITmfEventPar
         return cpuNumber;
     }
 
+    /* (non-Javadoc)
+     * @see org.eclipse.linuxtools.tmf.core.trace.ITmfTrace#validate(org.eclipse.core.resources.IProject, java.lang.String)
+     */
+    @Override
+    public boolean validate(IProject project, String path) {
+        return fileExists(path);
+    }
+
 }
 
 
This page took 0.024233 seconds and 5 git commands to generate.