1f4617f4a4c9a5b5951b6457539c38e4b57c49ce
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.ui / src / org / eclipse / tracecompass / internal / analysis / os / linux / ui / views / latency / SystemCallLatencyDensityView.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
10 package org.eclipse.tracecompass.internal.analysis.os.linux.ui.views.latency;
11
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
20 /**
21 * System Call Density view
22 *
23 * @author Matthew Khouzam
24 * @author Marc-Andre Laperle
25 */
26 public class SystemCallLatencyDensityView extends AbstractSegmentStoreDensityView {
27
28 /** The view's ID */
29 public static final String ID = "org.eclipse.tracecompass.analysis.os.linux.views.latency.density"; //$NON-NLS-1$
30
31 /**
32 * Constructs a new density view.
33 */
34 public SystemCallLatencyDensityView() {
35 super(ID);
36 }
37
38 @Override
39 protected AbstractSegmentStoreTableViewer createSegmentStoreTableViewer(Composite parent) {
40 return new SystemCallLatencyTableViewer(new TableViewer(parent, SWT.FULL_SELECTION | SWT.VIRTUAL)) {
41 @Override
42 protected void createProviderColumns() {
43 super.createProviderColumns();
44 Table t = (Table) getControl();
45 t.setColumnOrder(new int[] { 2, 3, 0, 1 });
46 }
47 };
48 }
49
50 @Override
51 protected AbstractSegmentStoreDensityViewer createSegmentStoreDensityViewer(Composite parent) {
52 return new SystemCallDensityViewer(parent);
53 }
54
55 }
This page took 0.042646 seconds and 4 git commands to generate.