timing.ui: fix typo in id of CallGraphDensityView
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.timing.ui / src / org / eclipse / tracecompass / internal / analysis / timing / ui / callgraph / CallGraphDensityView.java
1 /******************************************************************************
2 * Copyright (c) 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.timing.ui.callgraph;
11
12 import org.eclipse.jdt.annotation.NonNull;
13 import org.eclipse.jface.viewers.TableViewer;
14 import org.eclipse.swt.SWT;
15 import org.eclipse.swt.widgets.Composite;
16 import org.eclipse.swt.widgets.Table;
17 import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.density.AbstractSegmentStoreDensityView;
18 import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.density.AbstractSegmentStoreDensityViewer;
19 import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.table.AbstractSegmentStoreTableViewer;
20 import org.eclipse.tracecompass.common.core.NonNullUtils;
21
22 /**
23 * Call stack Density view displaying the call stack segments tree.
24 *
25 * @author Sonia Farrah
26 */
27 public class CallGraphDensityView extends AbstractSegmentStoreDensityView {
28
29 /** The view's ID */
30 public static final @NonNull String ID = CallGraphDensityView.class.getPackage().getName() + ".callgraphDensity"; //$NON-NLS-1$
31
32 /**
33 * Constructs a new density view.
34 */
35 public CallGraphDensityView() {
36 super(ID);
37 }
38
39 @Override
40 protected AbstractSegmentStoreTableViewer createSegmentStoreTableViewer(Composite parent) {
41 return new CallGraphTableViewer(new TableViewer(parent, SWT.FULL_SELECTION | SWT.VIRTUAL)) {
42 @Override
43 protected void createProviderColumns() {
44 super.createProviderColumns();
45 Table t = (Table) getControl();
46 t.setColumnOrder(new int[] { 2, 3, 0, 1 });
47 }
48 };
49 }
50
51 @Override
52 protected AbstractSegmentStoreDensityViewer createSegmentStoreDensityViewer(Composite parent) {
53 return new CallGraphDensityViewer(NonNullUtils.checkNotNull(parent));
54 }
55 }
This page took 0.032747 seconds and 5 git commands to generate.