tmf: Add a trace-getting method in TmfView
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 27 Mar 2013 18:17:03 +0000 (14:17 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Thu, 28 Mar 2013 14:58:03 +0000 (10:58 -0400)
commit3ac5721abe445ccd4149de1fd1678470ed26d463
treeaaf489c029065cc13bbfc17ab704806367719925
parent38df2c82d2fc481f6cbe22d62fb0ec6661b6e14c
tmf: Add a trace-getting method in TmfView

Instead of calling the getSite.getPage.getEditor mantra every
time, if anyone has a reference to a view they can now use this
convenience getActiveTrace() method to get the currently selected
trace.

Kind of replacement for the old TmfExperiment.getCurrentExperiment();

Change-Id: I84783c6e65bb5c9095d4f868e9cb00a80bb246b0
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/11530
org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java
org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/resources/ResourcesView.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/TmfView.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/environment/TmfEnvironmentView.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/HistogramView.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/statistics/TmfStatisticsView.java
This page took 0.033358 seconds and 5 git commands to generate.