Commit | Line | Data |
---|---|---|
7b79ee46 FLN |
1 | /******************************************************************************* |
2 | * Copyright (c) 2015 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; | |
7b79ee46 | 16 | import org.eclipse.jface.viewers.TableViewer; |
7b79ee46 | 17 | import org.eclipse.tracecompass.analysis.os.linux.core.latency.LatencyAnalysis; |
152630e0 | 18 | import org.eclipse.tracecompass.analysis.timing.core.segmentstore.AbstractSegmentStoreAnalysisModule; |
b9fff7ad | 19 | import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.AbstractSegmentStoreTableViewer; |
7b79ee46 | 20 | import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace; |
7b79ee46 | 21 | import 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 | */ | |
b9fff7ad | 28 | public class LatencyTableViewer extends AbstractSegmentStoreTableViewer { |
7b79ee46 FLN |
29 | |
30 | // ------------------------------------------------------------------------ | |
31 | // Constructor | |
32 | // ------------------------------------------------------------------------ | |
33 | ||
34 | /** | |
35 | * Constructor | |
36 | * | |
37 | * @param tableViewer | |
b9fff7ad | 38 | * The table viewer |
7b79ee46 FLN |
39 | */ |
40 | public LatencyTableViewer(TableViewer tableViewer) { | |
41 | super(tableViewer); | |
7b79ee46 FLN |
42 | } |
43 | ||
44 | // ------------------------------------------------------------------------ | |
45 | // Operations | |
46 | // ------------------------------------------------------------------------ | |
47 | ||
21de574d | 48 | @Override |
b9fff7ad BH |
49 | protected @Nullable AbstractSegmentStoreAnalysisModule getSegmentStoreAnalysisModule(ITmfTrace trace) { |
50 | return TmfTraceUtils.getAnalysisModuleOfClass(trace, LatencyAnalysis.class, LatencyAnalysis.ID); | |
7b79ee46 FLN |
51 | } |
52 | } |