aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Giraldeau2013-02-01 15:25:03 (EST)
committerPatrick Tasse2013-02-05 17:23:31 (EST)
commit52b5093ba7363a9392992729985cfa100cbcbecb (patch)
tree48abadb4dcf55b886a95334cc6ba3d152442dda1
parent04903ed9ec6789cecebcfac2e13849ea4b8eda87 (diff)
downloadorg.eclipse.linuxtools-52b5093ba7363a9392992729985cfa100cbcbecb.zip
org.eclipse.linuxtools-52b5093ba7363a9392992729985cfa100cbcbecb.tar.gz
org.eclipse.linuxtools-52b5093ba7363a9392992729985cfa100cbcbecb.tar.bz2
Register the control flow as selection providerrefs/changes/15/10115/2
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>
-rw-r--r--lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java
index 0974aa5..1c25906 100644
--- a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java
+++ b/lttng/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)