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
1 /*******************************************************************************
2 * Copyright (c) 2015, 2016 Ericsson
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
13 package org.eclipse.tracecompass.internal.analysis.os.linux.ui.views.latency;
14
15 import org.eclipse.jdt.annotation.Nullable;
16 import org.eclipse.jface.viewers.TableViewer;
17 import org.eclipse.tracecompass.analysis.timing.core.segmentstore.ISegmentStoreProvider;
18 import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.table.AbstractSegmentStoreTableViewer;
19 import org.eclipse.tracecompass.internal.analysis.os.linux.core.latency.SystemCallLatencyAnalysis;
20 import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
21 import org.eclipse.tracecompass.tmf.core.trace.TmfTraceUtils;
22
23 /**
24 * Displays the latency analysis data in a column table
25 *
26 * @author France Lapointe Nguyen
27 */
28 public class SystemCallLatencyTableViewer extends AbstractSegmentStoreTableViewer {
29
30 // ------------------------------------------------------------------------
31 // Constructor
32 // ------------------------------------------------------------------------
33
34 /**
35 * Constructor
36 *
37 * @param tableViewer
38 * The table viewer
39 */
40 public SystemCallLatencyTableViewer(TableViewer tableViewer) {
41 super(tableViewer);
42 }
43
44 // ------------------------------------------------------------------------
45 // Operations
46 // ------------------------------------------------------------------------
47
48 @Override
49 protected @Nullable ISegmentStoreProvider getSegmentStoreProvider(ITmfTrace trace) {
50 return TmfTraceUtils.getAnalysisModuleOfClass(trace, SystemCallLatencyAnalysis.class, SystemCallLatencyAnalysis.ID);
51 }
52 }
This page took 0.03831 seconds and 5 git commands to generate.