summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorMathieu Denis2012-08-21 17:10:21 (EDT)
committer Alexandre Montplaisir2012-08-22 15:54:31 (EDT)
commit5f90ea16ce2a6706bf17ce3a47869595666c7fa4 (patch)
tree81b102e21aa078bbcc278c06cf00b6e0d74d768c
parent14e9cd167207dda9efcf31082b7881368c9e52a9 (diff)
downloadorg.eclipse.linuxtools-5f90ea16ce2a6706bf17ce3a47869595666c7fa4.zip
org.eclipse.linuxtools-5f90ea16ce2a6706bf17ce3a47869595666c7fa4.tar.gz
org.eclipse.linuxtools-5f90ea16ce2a6706bf17ce3a47869595666c7fa4.tar.bz2
tmf: Fix reload of the same trace for statistics
Fixes bug 387639 Avoids deleting the statistics tree if the global request gets canceled. Change-Id: I596930b2b08ea796bd82c920d836c90a86cafe09 Signed-off-by: Mathieu Denis <mathieu.denis@polymtl.ca> Reviewed-on: https://git.eclipse.org/r/7308 Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im> IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im> Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im> Tested-by: Bernd Hufmann <bhufmann@gmail.com> IP-Clean: Bernd Hufmann <bhufmann@gmail.com> Reviewed-by: Bernd Hufmann <bhufmann@gmail.com>
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/TmfStatisticsViewer.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/TmfStatisticsViewer.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/TmfStatisticsViewer.java
index 54f4e89..ba4b9c3 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/TmfStatisticsViewer.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/statistics/TmfStatisticsViewer.java
@@ -563,13 +563,9 @@ public class TmfStatisticsViewer extends TmfViewer {
protected void modelIncomplete(boolean isGlobalRequest) {
if (isGlobalRequest) { // Clean the global statistics
/*
- * The data is invalid and shall be removed to refresh upon next
- * selection
+ * No need to reset the global number of events, since the index of
+ * the last requested event is known.
*/
- Object input = getInput();
- if (input instanceof TmfStatisticsTreeNode) {
- TmfStatisticsTreeRootFactory.removeStatTreeRoot(getTreeID());
- }
resetUpdateSynchronization();
sendPendingUpdate();
} else { // Clean the partial statistics