tmf: Update copyright headers in tmf.ui
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui.tests / widgetStubs / org / eclipse / linuxtools / tmf / ui / tests / uml2sd / trace / TmfUml2SDTestTrace.java
index cef80258a8a5c571008a3720b3fb5bb627cbca52..bdfc326678875eead8c2c36f8ec6d3eca9787875 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2011 Ericsson
+ * Copyright (c) 2011, 2013 Ericsson
  *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
@@ -15,24 +15,24 @@ import java.io.EOFException;
 import java.io.IOException;
 import java.io.RandomAccessFile;
 
+import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
 import org.eclipse.linuxtools.tmf.core.event.ITmfEventField;
 import org.eclipse.linuxtools.tmf.core.event.TmfEvent;
 import org.eclipse.linuxtools.tmf.core.event.TmfEventField;
 import org.eclipse.linuxtools.tmf.core.event.TmfEventType;
-import org.eclipse.linuxtools.tmf.core.event.TmfTimestamp;
+import org.eclipse.linuxtools.tmf.core.timestamp.TmfTimestamp;
 import org.eclipse.linuxtools.tmf.core.trace.ITmfContext;
 import org.eclipse.linuxtools.tmf.core.trace.ITmfEventParser;
 import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
-import org.eclipse.linuxtools.tmf.core.trace.TmfLocation;
 import org.eclipse.linuxtools.tmf.tests.stubs.trace.TmfTraceStub;
 
 /**
  * Parser implementation for Uml2SD Test Traces.
  *
  */
-public class TmfUml2SDTestTrace implements ITmfEventParser<TmfEvent> {
+public class TmfUml2SDTestTrace implements ITmfEventParser {
 
-    ITmfTrace<TmfEvent> fEventStream;
+    ITmfTrace fEventStream;
 
     /**
      * Default Constructor
@@ -44,20 +44,20 @@ public class TmfUml2SDTestTrace implements ITmfEventParser<TmfEvent> {
      * Constructor
      * @param eventStream ITmfTrace implementation
      */
-    public TmfUml2SDTestTrace(ITmfTrace<TmfEvent> eventStream) {
+    public TmfUml2SDTestTrace(ITmfTrace eventStream) {
         fEventStream = eventStream;
     }
 
     /**
      * @param eventStream ITmfTrace implementation to set
      */
-    public void setTrace(ITmfTrace<TmfEvent> eventStream) {
+    public void setTrace(ITmfTrace eventStream) {
         fEventStream = eventStream;
     }
 
     @Override
     @SuppressWarnings({ "nls" })
-    public TmfEvent parseEvent(ITmfContext context) {
+    public ITmfEvent parseEvent(ITmfContext context) {
         if (! (fEventStream instanceof TmfTraceStub)) {
             return null;
         }
@@ -70,7 +70,7 @@ public class TmfUml2SDTestTrace implements ITmfEventParser<TmfEvent> {
 
         long location = 0;
         if (context != null) {
-            location = ((TmfLocation<Long>) (context.getLocation())).getLocation();
+            location = (Long) context.getLocation().getLocationInfo();
         }
 
         try {
@@ -101,7 +101,7 @@ public class TmfUml2SDTestTrace implements ITmfEventParser<TmfEvent> {
             fields[2] = new TmfEventField("signal", signal);
 
             ITmfEventField tmfContent = new TmfEventField(ITmfEventField.ROOT_FIELD_ID, content, fields);
-            TmfEvent tmfEvent = new TmfEvent(fEventStream, new TmfTimestamp(ts, -9), source, tmfEventType, tmfContent, reference);
+            ITmfEvent tmfEvent = new TmfEvent(fEventStream, new TmfTimestamp(ts, -9), source, tmfEventType, tmfContent, reference);
 
             return tmfEvent;
         } catch (final EOFException e) {
This page took 0.024964 seconds and 5 git commands to generate.