Minor API improvements
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.core / src / org / eclipse / linuxtools / internal / lttng / core / trace / LTTngTrace.java
index 8531c8ca153440d2b5cd1c0ed7acb641c24662d8..842f7cc3f06cb862f820c773d20675029e179811 100644 (file)
@@ -103,7 +103,7 @@ public class LTTngTrace extends TmfTrace<LttngEvent> implements ITmfEventParser<
 
     @Override
     public boolean validate(final IProject project, final String path) {
-        if (super.validate(project, path)) {
+        if (fileExists(path)) {
             final String traceLibPath = TraceHelper.getTraceLibDirFromProject(project);
             try {
                 final LTTngTraceVersion version = new LTTngTraceVersion(path, traceLibPath);
@@ -153,7 +153,7 @@ public class LTTngTrace extends TmfTrace<LttngEvent> implements ITmfEventParser<
         // Set the currentEvent to the eventContent
         eventContent.setEvent(currentLttngEvent);
 
-        fParser = (ITmfEventParser) this;
+        fParser = (ITmfEventParser<LttngEvent>) this;
         fCacheSize = CHECKPOINT_PAGE_SIZE;
  
         // // Bypass indexing if asked
@@ -458,7 +458,7 @@ public class LTTngTrace extends TmfTrace<LttngEvent> implements ITmfEventParser<
         if (location == null) {
             curLocation = new LttngLocation();
             final TmfContext context = seekEvent(curLocation.getOperationTime());
-            context.setRank(ITmfContext.INITIAL_RANK);
+            context.setRank(0);
             return context;
         } else
             curLocation = (LttngLocation) location;
This page took 0.023777 seconds and 5 git commands to generate.