Register the control flow as selection provider
authorFrancis Giraldeau <francis.giraldeau@gmail.com>
Fri, 1 Feb 2013 20:25:03 +0000 (15:25 -0500)
committerPatrick Tasse <patrick.tasse@gmail.com>
Tue, 5 Feb 2013 22:23:31 +0000 (17:23 -0500)
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 <francis.giraldeau@gmail.com>
Change-Id: I5294e12c660c60a8e01f1b76c3e993da6e6534af
Reviewed-on: https://git.eclipse.org/r/10115
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>

org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java

index 0974aa56ba040c682bac3d11cce4665de8ee6557..1c259065c7b6825992487c9a1a6694506d008bc9 100644 (file)
@@ -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)
This page took 0.02698 seconds and 5 git commands to generate.