From a56ec2b8d3938ab90568c4d4c2e75f48cbe6e46a Mon Sep 17 00:00:00 2001 From: Patrick Tasse Date: Fri, 25 Jan 2013 18:06:28 -0500 Subject: [PATCH] Fix event table selection handling A SelectionChangedEvent should be fired when the selection changes due to a Search match. The selected rank should be updated when the selection changes due to the gotoMarker() handling. Change-Id: Iaec404049edf126f43ee6d049cdc8263f4e1c5db Reviewed-on: https://git.eclipse.org/r/9941 Tested-by: Hudson CI Reviewed-by: Alexandre Montplaisir IP-Clean: Alexandre Montplaisir Tested-by: Alexandre Montplaisir Reviewed-by: Patrick Tasse --- .../linuxtools/tmf/ui/viewers/events/TmfEventsTable.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java index c68bc6e761..aad9495b24 100644 --- a/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java +++ b/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java @@ -1618,6 +1618,7 @@ public class TmfEventsTable extends TmfComponent implements IGotoMarker, IColorS if (foundTimestamp != null) { broadcast(new TmfTimeSynchSignal(TmfEventsTable.this, foundTimestamp)); } + fireSelectionChanged(new SelectionChangedEvent(TmfEventsTable.this, getSelection())); synchronized (fSearchSyncObj) { fSearchThread = null; } @@ -2005,6 +2006,7 @@ public class TmfEventsTable extends TmfComponent implements IGotoMarker, IColorS } else if (rank >= fTable.getItemCount()) { fPendingGotoRank = rank; } + fSelectedRank = rank; fTable.setSelection(index + 1); // +1 for header row } } -- 2.34.1