Ajust stub to the new TMF interface
authorWilliam Bourque <william.bourque@polymtl.ca>
Mon, 19 Apr 2010 23:09:14 +0000 (23:09 +0000)
committerWilliam Bourque <william.bourque@polymtl.ca>
Mon, 19 Apr 2010 23:09:14 +0000 (23:09 +0000)
org.eclipse.linuxtools.tmf.tests/stubs/org/eclipse/linuxtools/tmf/trace/TmfTraceStub.java

index aa69bef1088a466e5a692265cd1a5a7bcdc8169c..dceb3174d3638b443148906d1ed43a661074f668 100644 (file)
@@ -64,7 +64,18 @@ public class TmfTraceStub extends TmfTrace<TmfEvent> {
     public TmfTraceStub(String filename, boolean waitForCompletion) throws FileNotFoundException {
         this(filename, DEFAULT_CACHE_SIZE, waitForCompletion);
     }
-
+    
+    public ITmfTrace createTraceCopy() {
+               ITmfTrace returnedValue = null;
+               try {
+                       returnedValue = new TmfTraceStub(this.getName());
+               }
+               catch (FileNotFoundException e) {
+                       e.printStackTrace();
+               }
+               return returnedValue;
+       }
+    
     /**
      * @param filename
      * @param cacheSize
This page took 0.02787 seconds and 5 git commands to generate.