Change ITmfTrace<T extends TmfEvent> to ITmfTrace<T extends ITmfEvent>
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui.tests / stubs / org / eclipse / linuxtools / lttng / stubs / LTTngTraceStub.java
index 7a3f84e1a3bd978b3762fa94bd242dfdc30cecd2..34545326de0462d0ba3223000755b3696e211594 100644 (file)
@@ -16,14 +16,14 @@ import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.io.RandomAccessFile;
 
-import org.eclipse.linuxtools.lttng.event.LttngEvent;
-import org.eclipse.linuxtools.tmf.event.TmfEvent;
-import org.eclipse.linuxtools.tmf.parser.ITmfEventParser;
-import org.eclipse.linuxtools.tmf.trace.ITmfLocation;
-import org.eclipse.linuxtools.tmf.trace.ITmfTrace;
-import org.eclipse.linuxtools.tmf.trace.TmfContext;
-import org.eclipse.linuxtools.tmf.trace.TmfLocation;
-import org.eclipse.linuxtools.tmf.trace.TmfTrace;
+import org.eclipse.linuxtools.lttng.core.event.LttngEvent;
+import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
+import org.eclipse.linuxtools.tmf.core.parser.ITmfEventParser;
+import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;
+import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
+import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
+import org.eclipse.linuxtools.tmf.core.trace.TmfLocation;
+import org.eclipse.linuxtools.tmf.core.trace.TmfTrace;
 
 /**
  * <b><u>LTTngTraceStub</u></b>
@@ -41,7 +41,7 @@ public class LTTngTraceStub extends TmfTrace<LttngEvent> {
     private final RandomAccessFile fTrace;
 
     // The associated event parser
-    private final ITmfEventParser fParser;
+    private final ITmfEventParser<LttngEvent> fParser;
 
     // ========================================================================
     // Constructors
@@ -70,8 +70,8 @@ public class LTTngTraceStub extends TmfTrace<LttngEvent> {
     }
     
        @Override
-       public ITmfTrace createTraceCopy() {
-               ITmfTrace returnedValue = null;
+       public ITmfTrace<LttngEvent> copy() {
+               ITmfTrace<LttngEvent> returnedValue = null;
                try {
                        returnedValue = new LTTngTraceStub(this.getName());
                }
@@ -145,10 +145,10 @@ public class LTTngTraceStub extends TmfTrace<LttngEvent> {
         * @see org.eclipse.linuxtools.tmf.trace.ITmfTrace#parseEvent()
         */
        @Override
-       public TmfEvent parseEvent(TmfContext context) {
+       public ITmfEvent parseEvent(TmfContext context) {
                try {
                        // paserNextEvent updates the context
-                       TmfEvent event = fParser.parseNextEvent(this, context);
+                   LttngEvent event = (LttngEvent) fParser.parseNextEvent(this, context);
 //                     if (event != null) {
 //                             context.setTimestamp(event.getTimestamp());
 //                     }
This page took 0.027171 seconds and 5 git commands to generate.