timing.swtbot: add Generic SegmentTable tests
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.ui / src / org / eclipse / tracecompass / internal / analysis / os / linux / ui / views / latency / SystemCallLatencyTableViewer.java
CommitLineData
7b79ee46 1/*******************************************************************************
edded5c1 2 * Copyright (c) 2015, 2016 Ericsson
7b79ee46
FLN
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * France Lapointe Nguyen - Initial API and implementation
11 *******************************************************************************/
12
13package org.eclipse.tracecompass.internal.analysis.os.linux.ui.views.latency;
14
15import org.eclipse.jdt.annotation.Nullable;
7b79ee46 16import org.eclipse.jface.viewers.TableViewer;
0f769d2b 17import org.eclipse.tracecompass.analysis.timing.core.segmentstore.ISegmentStoreProvider;
edded5c1 18import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.table.AbstractSegmentStoreTableViewer;
660d4ed9 19import org.eclipse.tracecompass.internal.analysis.os.linux.core.latency.SystemCallLatencyAnalysis;
7b79ee46 20import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
7b79ee46 21import org.eclipse.tracecompass.tmf.core.trace.TmfTraceUtils;
7b79ee46
FLN
22
23/**
24 * Displays the latency analysis data in a column table
25 *
26 * @author France Lapointe Nguyen
27 */
aa65365a 28public class SystemCallLatencyTableViewer extends AbstractSegmentStoreTableViewer {
7b79ee46
FLN
29
30 // ------------------------------------------------------------------------
31 // Constructor
32 // ------------------------------------------------------------------------
33
34 /**
35 * Constructor
36 *
37 * @param tableViewer
b9fff7ad 38 * The table viewer
7b79ee46 39 */
aa65365a 40 public SystemCallLatencyTableViewer(TableViewer tableViewer) {
7b79ee46 41 super(tableViewer);
7b79ee46
FLN
42 }
43
44 // ------------------------------------------------------------------------
45 // Operations
46 // ------------------------------------------------------------------------
47
21de574d 48 @Override
0f769d2b 49 protected @Nullable ISegmentStoreProvider getSegmentStoreProvider(ITmfTrace trace) {
aa65365a 50 return TmfTraceUtils.getAnalysisModuleOfClass(trace, SystemCallLatencyAnalysis.class, SystemCallLatencyAnalysis.ID);
7b79ee46
FLN
51 }
52}
This page took 0.041275 seconds and 5 git commands to generate.