tmf: Use tabs in statistics view for each traces
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / internal / lttng / ui / views / controlflow / model / FlowTimeRangeViewerProvider.java
CommitLineData
c48abe58
FC
1/*******************************************************************************
2 * Copyright (c) 2010 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 * Contributors:
10 * Matthew Khouzam - Initial implementation
11 *******************************************************************************/
12
638eac44 13package org.eclipse.linuxtools.internal.lttng.ui.views.controlflow.model;
c48abe58 14
638eac44
FC
15import org.eclipse.linuxtools.internal.lttng.ui.model.trange.TimeRangeViewerProvider;
16import org.eclipse.linuxtools.internal.lttng.ui.views.common.ParamsUpdater;
c48abe58
FC
17
18public class FlowTimeRangeViewerProvider extends TimeRangeViewerProvider {
19
20 public FlowTimeRangeViewerProvider(ParamsUpdater paramsUpdater) {
21 super(paramsUpdater);
22 }
23
24 /*
25 * (non-Javadoc)
26 *
27 * @see
28 * org.eclipse.linuxtools.tmf.ui.viewers.timeAnalysis.TmfTimeAnalysisProvider
29 * #getStateName(org.eclipse.linuxtools.tmf.ui.viewers.timeAnalysis.
30 * TmfTimeAnalysisProvider.StateColor)
31 */
32 @Override
33 public String getStateName(StateColor color) {
34 // Override to multiple instances of the widget, the same color can have
35 // multiple meanings
36 boolean isInProcess = procStateToColor.containsValue(color);
37
38 if (isInProcess) {
39 return findObject(color, procStateToColor);
40 }
41 return super.getStateName(color);
42 }
43
44
45
46}
This page took 0.037788 seconds and 5 git commands to generate.