Search in sources :

Example 1 with TmfTimeViewer

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);
        }
    }
}
Also used : ITmfTrace(org.eclipse.tracecompass.tmf.core.trace.ITmfTrace) TmfXYChartViewer(org.eclipse.tracecompass.tmf.ui.viewers.xychart.TmfXYChartViewer) TmfTimeViewer(org.eclipse.tracecompass.tmf.ui.viewers.TmfTimeViewer) TmfViewer(org.eclipse.tracecompass.tmf.ui.viewers.TmfViewer) TmfTraceSelectedSignal(org.eclipse.tracecompass.tmf.core.signal.TmfTraceSelectedSignal)

Aggregations

TmfTraceSelectedSignal (org.eclipse.tracecompass.tmf.core.signal.TmfTraceSelectedSignal)1 ITmfTrace (org.eclipse.tracecompass.tmf.core.trace.ITmfTrace)1 TmfTimeViewer (org.eclipse.tracecompass.tmf.ui.viewers.TmfTimeViewer)1 TmfViewer (org.eclipse.tracecompass.tmf.ui.viewers.TmfViewer)1 TmfXYChartViewer (org.eclipse.tracecompass.tmf.ui.viewers.xychart.TmfXYChartViewer)1