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
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 static org.eclipse.tracecompass.common.core.NonNullUtils.nullToEmptyString;
13
14 import org.eclipse.jdt.annotation.Nullable;
15 import org.eclipse.swt.widgets.Composite;
16 import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.scatter.AbstractSegmentStoreScatterGraphViewer;
17 import org.eclipse.tracecompass.common.core.NonNullUtils;
18 import org.eclipse.tracecompass.tmf.ui.viewers.xycharts.TmfXYChartViewer;
19 import org.eclipse.tracecompass.tmf.ui.views.TmfChartView;
20
21 import com.google.common.annotations.VisibleForTesting;
22
23 /**
24 * Some stuff
25 *
26 * @author Matthew Khouzam
27 */
28 public class SystemCallLatencyScatterView extends TmfChartView {
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
35 private @Nullable AbstractSegmentStoreScatterGraphViewer fScatterViewer;
36
37 // ------------------------------------------------------------------------
38 // Constructor
39 // ------------------------------------------------------------------------
40
41 /**
42 * Constructor
43 */
44 public SystemCallLatencyScatterView() {
45 super(ID);
46 }
47
48 // ------------------------------------------------------------------------
49 // ViewPart
50 // ------------------------------------------------------------------------
51
52 @Override
53 protected TmfXYChartViewer createChartViewer(@Nullable Composite parent) {
54 fScatterViewer = new SystemCallLatencyScatterGraphViewer(NonNullUtils.checkNotNull(parent), nullToEmptyString(Messages.SystemCallLatencyScatterView_title), nullToEmptyString(Messages.SystemCallLatencyScatterView_xAxis),
55 nullToEmptyString(Messages.SystemCallLatencyScatterView_yAxis));
56 return fScatterViewer;
57 }
58
59 @VisibleForTesting
60 @Override
61 public TmfXYChartViewer getChartViewer() {
62 return super.getChartViewer();
63 }
64
65 }
This page took 0.032242 seconds and 5 git commands to generate.