From 7e7a91ae478c9b45506215df21858749b075047c Mon Sep 17 00:00:00 2001 From: Francis Giraldeau Date: Fri, 1 Feb 2013 15:25:03 -0500 Subject: [PATCH] Register the control flow as selection provider In order to signal the selection of a task in the control flow view, register the tree view in the selection service. It allows other plug-ins to listen for selection change. Signed-off-by: Francis Giraldeau Change-Id: I5294e12c660c60a8e01f1b76c3e993da6e6534af Reviewed-on: https://git.eclipse.org/r/10115 Tested-by: Hudson CI Reviewed-by: Patrick Tasse IP-Clean: Patrick Tasse Tested-by: Patrick Tasse Reviewed-by: Alexandre Montplaisir IP-Clean: Alexandre Montplaisir --- .../lttng2/kernel/ui/views/controlflow/ControlFlowView.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java b/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java index 0974aa56ba..1c259065c7 100644 --- a/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java +++ b/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java @@ -422,6 +422,9 @@ public class ControlFlowView extends TmfView { traceSelected(new TmfTraceSelectedSignal(this, trace)); } } + + // make selection available to other views + getSite().setSelectionProvider(fTimeGraphCombo.getTreeViewer()); } /* (non-Javadoc) -- 2.34.1