Fix for streaming and reconnection. Added standalone releng for lttng.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / statistics / TmfStatisticsView.java
index d03d11b6dc19d98573f041288427b588d7a4cecb..f5e81fba55c03a870322e5bdf33fda271a9d5368 100755 (executable)
@@ -87,6 +87,10 @@ public class TmfStatisticsView extends TmfView {
     protected TmfTimeRange fStatisticsUpdateRange = null;
     protected final Object fStatisticsUpdateSyncObj = new Object();
 
+    // Flag to force request the data from trace
+    protected boolean fRequestData = false; 
+
+    
     // Object to store the cursor while waiting for the experiment to load
     private Cursor fWaitCursor = null;
 
@@ -95,6 +99,7 @@ public class TmfStatisticsView extends TmfView {
 
     // Number of this instance. Used as an instance ID
     private int fInstanceNb;
+    
 
     /**
      * Constructor of a statistics view.
@@ -202,6 +207,7 @@ public class TmfStatisticsView extends TmfView {
         // Read current data if any available
         TmfExperiment<?> experiment = TmfExperiment.getCurrentExperiment();
         if (experiment != null) {
+            fRequestData = true;
             // Insert the statistics data into the tree
             @SuppressWarnings({ "rawtypes", "unchecked" })
             TmfExperimentSelectedSignal<?> signal = new TmfExperimentSelectedSignal(this, experiment);
@@ -345,9 +351,11 @@ public class TmfStatisticsView extends TmfView {
 
             // set input to a clean data model
             fTreeViewer.setInput(treeModelRoot);
-
-            // if the data is not available or has changed, reload it
-            requestData(experiment, experiment.getTimeRange());
+            
+            if (fRequestData) {
+                requestData(experiment, experiment.getTimeRange());
+                fRequestData = false;
+            }
         }
     }
 
This page took 0.023677 seconds and 5 git commands to generate.