use of org.eclipse.tracecompass.tmf.ui.viewers.TmfTimeViewer in project tracecompass by tracecompass.
the class TmfChartView method loadTrace.
/**
* Load the trace into view.
*/
protected void loadTrace() {
// Initialize the tree viewer with the currently selected trace
ITmfTrace trace = TmfTraceManager.getInstance().getActiveTrace();
if (trace != null) {
TmfTraceSelectedSignal signal = new TmfTraceSelectedSignal(this, trace);
TmfViewer leftViewer = getLeftChildViewer();
if (leftViewer instanceof TmfTimeViewer) {
((TmfTimeViewer) leftViewer).traceSelected(signal);
}
TmfXYChartViewer chartViewer = getChartViewer();
if (chartViewer != null) {
chartViewer.traceSelected(signal);
}
}
}
Aggregations