Commit | Line | Data |
---|---|---|
b23cbbfc | 1 | /****************************************************************************** |
edded5c1 | 2 | * Copyright (c) 2015, 2016 Ericsson |
b23cbbfc MAL |
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; | |
b23cbbfc MAL |
16 | import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.density.AbstractSegmentStoreDensityView; |
17 | import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.density.AbstractSegmentStoreDensityViewer; | |
edded5c1 | 18 | import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.table.AbstractSegmentStoreTableViewer; |
43439230 GB |
19 | import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.table.SegmentStoreTableViewer; |
20 | import org.eclipse.tracecompass.internal.analysis.os.linux.core.latency.SystemCallLatencyAnalysis; | |
b23cbbfc MAL |
21 | |
22 | /** | |
23 | * System Call Density view | |
24 | * | |
25 | * @author Matthew Khouzam | |
26 | * @author Marc-Andre Laperle | |
27 | */ | |
28 | public class SystemCallLatencyDensityView extends AbstractSegmentStoreDensityView { | |
29 | ||
30 | /** The view's ID */ | |
31 | public static final String ID = "org.eclipse.tracecompass.analysis.os.linux.views.latency.density"; //$NON-NLS-1$ | |
32 | ||
33 | /** | |
34 | * Constructs a new density view. | |
35 | */ | |
36 | public SystemCallLatencyDensityView() { | |
37 | super(ID); | |
38 | } | |
39 | ||
40 | @Override | |
41 | protected AbstractSegmentStoreTableViewer createSegmentStoreTableViewer(Composite parent) { | |
43439230 | 42 | return new SegmentStoreTableViewer(new TableViewer(parent, SWT.FULL_SELECTION | SWT.VIRTUAL), SystemCallLatencyAnalysis.ID) { |
b23cbbfc | 43 | @Override |
0f769d2b MK |
44 | protected void createProviderColumns() { |
45 | super.createProviderColumns(); | |
b23cbbfc MAL |
46 | Table t = (Table) getControl(); |
47 | t.setColumnOrder(new int[] { 2, 3, 0, 1 }); | |
48 | } | |
49 | }; | |
50 | } | |
51 | ||
52 | @Override | |
53 | protected AbstractSegmentStoreDensityViewer createSegmentStoreDensityViewer(Composite parent) { | |
0e4f957e | 54 | return new SystemCallDensityViewer(parent); |
b23cbbfc MAL |
55 | } |
56 | ||
57 | } |