Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Tasse2012-07-13 09:42:30 -0400
committerPatrick Tasse2012-07-13 09:58:59 -0400
commit7019a00d22ce11aa7043356b387cb9ebebf1eba3 (patch)
treece205477e9f525d381531c0d71ddfe85c1bd2137
parentaacacfb1d8f0a44389975fd31e33ddf39c33c923 (diff)
downloadorg.eclipse.linuxtools-7019a00d22ce11aa7043356b387cb9ebebf1eba3.tar.gz
org.eclipse.linuxtools-7019a00d22ce11aa7043356b387cb9ebebf1eba3.tar.xz
org.eclipse.linuxtools-7019a00d22ce11aa7043356b387cb9ebebf1eba3.zip
Fix for bug 385055: Time graph selection prevents trace garbage
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/TimeGraphCombo.java3
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/TimeGraphViewer.java1
2 files changed, 4 insertions, 0 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/TimeGraphCombo.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/TimeGraphCombo.java
index 733d2800fa..f8039cd4c0 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/TimeGraphCombo.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/TimeGraphCombo.java
@@ -594,6 +594,9 @@ public class TimeGraphCombo extends Composite {
public void setInput(ITimeGraphEntry[] input) {
fInhibitTreeSelection = true;
fTreeViewer.setInput(input);
+ for (SelectionListenerWrapper listenerWrapper : fSelectionListenerMap.values()) {
+ listenerWrapper.selection = null;
+ }
fInhibitTreeSelection = false;
fTreeViewer.expandAll();
fTreeViewer.getTree().getVerticalBar().setEnabled(false);
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/TimeGraphViewer.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/TimeGraphViewer.java
index 1c78b54ead..ca3c629a53 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/TimeGraphViewer.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/TimeGraphViewer.java
@@ -142,6 +142,7 @@ public class TimeGraphViewer implements ITimeDataProvider, SelectionListener {
_verticalScrollBar.setEnabled(true);
setTopIndex(0);
_selectedTime = 0;
+ _selectedEntry = null;
refreshAllData(input);
}
}

Back to the top