1 /******************************************************************************
2 * Copyright (c) 2015, 2016 Ericsson
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 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.internal
.analysis
.os
.linux
.ui
.views
.latency
;
12 import org
.eclipse
.jface
.viewers
.TableViewer
;
13 import org
.eclipse
.swt
.SWT
;
14 import org
.eclipse
.swt
.widgets
.Composite
;
15 import org
.eclipse
.swt
.widgets
.Table
;
16 import org
.eclipse
.tracecompass
.analysis
.timing
.ui
.views
.segmentstore
.density
.AbstractSegmentStoreDensityView
;
17 import org
.eclipse
.tracecompass
.analysis
.timing
.ui
.views
.segmentstore
.density
.AbstractSegmentStoreDensityViewer
;
18 import org
.eclipse
.tracecompass
.analysis
.timing
.ui
.views
.segmentstore
.table
.AbstractSegmentStoreTableViewer
;
19 import org
.eclipse
.tracecompass
.common
.core
.NonNullUtils
;
22 * System Call Density view
24 * @author Matthew Khouzam
25 * @author Marc-Andre Laperle
27 public class SystemCallLatencyDensityView
extends AbstractSegmentStoreDensityView
{
30 public static final String ID
= "org.eclipse.tracecompass.analysis.os.linux.views.latency.density"; //$NON-NLS-1$
33 * Constructs a new density view.
35 public SystemCallLatencyDensityView() {
40 protected AbstractSegmentStoreTableViewer
createSegmentStoreTableViewer(Composite parent
) {
41 return new SystemCallLatencyTableViewer(new TableViewer(parent
, SWT
.FULL_SELECTION
| SWT
.VIRTUAL
)) {
43 protected void createProviderColumns() {
44 super.createProviderColumns();
45 Table t
= (Table
) getControl();
46 t
.setColumnOrder(new int[] { 2, 3, 0, 1 });
52 protected AbstractSegmentStoreDensityViewer
createSegmentStoreDensityViewer(Composite parent
) {
53 return new SystemCallDensityViewer(NonNullUtils
.checkNotNull(parent
));