1 /*******************************************************************************
2 * Copyright (c) 2016 École Polytechnique de Montréal
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
.analysis
.timing
.ui
.views
.segmentstore
.table
;
12 import org
.eclipse
.jdt
.annotation
.NonNull
;
13 import org
.eclipse
.jdt
.annotation
.Nullable
;
14 import org
.eclipse
.jface
.viewers
.TableViewer
;
15 import org
.eclipse
.swt
.widgets
.Composite
;
16 import org
.eclipse
.tracecompass
.common
.core
.NonNullUtils
;
17 import org
.eclipse
.ui
.PlatformUI
;
20 * View for displaying a segment store analysis in a table.
22 * @author Geneviève Bastien
25 public class SegmentStoreTableView
extends AbstractSegmentStoreTableView
{
30 public static final String ID
= "org.eclipse.tracecompass.analysis.timing.ui.segstore.table"; //$NON-NLS-1$
33 public void createPartControl(@Nullable Composite parent
) {
34 super.createPartControl(parent
);
35 setPartName(PlatformUI
.getWorkbench().getViewRegistry().find(getViewId()).getLabel());
39 protected @NonNull AbstractSegmentStoreTableViewer
createSegmentStoreViewer(@NonNull TableViewer tableViewer
) {
40 // Set the title of this view
41 String analysisId
= NonNullUtils
.nullToEmptyString(getViewSite().getSecondaryId());
42 return new SegmentStoreTableViewer(tableViewer
, analysisId
);