tmf: Add TextTrace abstract class with trace validation status
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / project / model / TraceTypeHelper.java
index f27024522a3f4dbc1f14cd3706edfedd868547b6..4331bdbcd7ff213b42a8b4773d77323c5d26c5d8 100644 (file)
@@ -12,7 +12,6 @@
 
 package org.eclipse.linuxtools.tmf.core.project.model;
 
-import org.eclipse.core.runtime.Status;
 import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
 
 /**
@@ -102,7 +101,7 @@ public class TraceTypeHelper {
     }
 
     private boolean standardValidate(String path) {
-        final boolean valid = fTrace.validate(null, path).equals(Status.OK_STATUS);
+        final boolean valid = fTrace.validate(null, path).isOK();
         return valid;
     }
 
@@ -121,4 +120,4 @@ public class TraceTypeHelper {
         return fName;
     }
 
-}
\ No newline at end of file
+}
This page took 0.024182 seconds and 5 git commands to generate.