tmf.ui/timing: Update XY viewers even if there is no data
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.ui / src / org / eclipse / tracecompass / internal / analysis / os / linux / ui / views / latency / SystemCallLatencyScatterView.java
CommitLineData
a5c41909 1/*******************************************************************************
edded5c1 2 * Copyright (c) 2015, 2016 Ericsson
a5c41909
MK
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
10package org.eclipse.tracecompass.internal.analysis.os.linux.ui.views.latency;
d9789e33 11
a5c41909
MK
12import static org.eclipse.tracecompass.common.core.NonNullUtils.nullToEmptyString;
13
14import org.eclipse.jdt.annotation.Nullable;
a5c41909 15import org.eclipse.swt.widgets.Composite;
edded5c1 16import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.scatter.AbstractSegmentStoreScatterGraphViewer;
d9789e33
MK
17import org.eclipse.tracecompass.common.core.NonNullUtils;
18import org.eclipse.tracecompass.tmf.ui.viewers.xycharts.TmfXYChartViewer;
19import org.eclipse.tracecompass.tmf.ui.views.TmfChartView;
a5c41909 20
44af9da9
GB
21import com.google.common.annotations.VisibleForTesting;
22
a5c41909
MK
23/**
24 * Some stuff
25 *
26 * @author Matthew Khouzam
27 */
aa65365a 28public class SystemCallLatencyScatterView extends TmfChartView {
a5c41909
MK
29 // Attributes
30 // ------------------------------------------------------------------------
31
32 /** The view's ID */
33 public static final String ID = "org.eclipse.tracecompass.analysis.os.linux.views.latency.scatter"; //$NON-NLS-1$
34
03c96217 35 private @Nullable AbstractSegmentStoreScatterGraphViewer fScatterViewer;
a5c41909
MK
36
37 // ------------------------------------------------------------------------
38 // Constructor
39 // ------------------------------------------------------------------------
40
41 /**
42 * Constructor
43 */
aa65365a 44 public SystemCallLatencyScatterView() {
a5c41909
MK
45 super(ID);
46 }
47
48 // ------------------------------------------------------------------------
49 // ViewPart
50 // ------------------------------------------------------------------------
51
52 @Override
d9789e33 53 protected TmfXYChartViewer createChartViewer(@Nullable Composite parent) {
aa65365a
BH
54 fScatterViewer = new SystemCallLatencyScatterGraphViewer(NonNullUtils.checkNotNull(parent), nullToEmptyString(Messages.SystemCallLatencyScatterView_title), nullToEmptyString(Messages.SystemCallLatencyScatterView_xAxis),
55 nullToEmptyString(Messages.SystemCallLatencyScatterView_yAxis));
d9789e33 56 return fScatterViewer;
a5c41909
MK
57 }
58
44af9da9
GB
59 @VisibleForTesting
60 @Override
61 public TmfXYChartViewer getChartViewer() {
62 return super.getChartViewer();
63 }
64
a5c41909 65}
This page took 0.041626 seconds and 5 git commands to generate.