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>
private final RandomAccessFile fTrace;
// The associated event parser
- private final ITmfEventParser fParser;
+ private final ITmfEventParser<LttngEvent> fParser;
// ========================================================================
// Constructors
}
@Override
- public ITmfTrace createTraceCopy() {
- ITmfTrace returnedValue = null;
+ public ITmfTrace<LttngEvent> copy() {
+ ITmfTrace<LttngEvent> returnedValue = null;
try {
returnedValue = new LTTngTraceStub(this.getName());
}
* @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());
// }