tmf: Update copyright headers in tmf.ui
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / viewers / statistics / model / TmfStatisticsTreeManager.java
index a85e600022a9d79e82af72dcef07be8e5ab3afe4..4968a533d5e5cb2159094ee353923898fcc4dbf4 100755 (executable)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2011 Ericsson
+ * Copyright (c) 2011, 2012 Ericsson
  *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
@@ -22,9 +22,9 @@ import java.util.Map;
  * root node is created for each tree. Using the tree node ID the statistics
  * tree can be retrieved.
  *
+ * @author Mathieu Denis
  * @version 2.0
  * @since 2.0
- * @author Mathieu Denis
  */
 public class TmfStatisticsTreeManager {
 
@@ -46,7 +46,7 @@ public class TmfStatisticsTreeManager {
         if (tree == null) {
             return null;
         }
-        return tree.getOrCreate(TmfStatisticsTree.ROOT);
+        return tree.getRootNode();
     }
 
     /**
@@ -83,8 +83,7 @@ public class TmfStatisticsTreeManager {
             return null;
         }
         fTreeInstances.put(traceUniqueId, statsData);
-        // if called for the first time, create the root node
-        return statsData.getOrCreate(TmfStatisticsTree.ROOT);
+        return statsData.getRootNode();
     }
 
     /**
This page took 0.023917 seconds and 5 git commands to generate.