| /******************************************************************************* |
| * Copyright (c) 2016 École Polytechnique de Montréal |
| * |
| * All rights reserved. This program and the accompanying materials are |
| * made available under the terms of the Eclipse Public License 2.0 which |
| * accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| *******************************************************************************/ |
| |
| package org.eclipse.tracecompass.incubator.internal.xaf.ui.views; |
| |
| import org.eclipse.jdt.annotation.Nullable; |
| import org.eclipse.jface.viewers.TableViewer; |
| import org.eclipse.tracecompass.analysis.timing.core.segmentstore.ISegmentStoreProvider; |
| import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.table.AbstractSegmentStoreTableViewer; |
| import org.eclipse.tracecompass.incubator.internal.xaf.ui.statemachine.StateMachineAnalysis; |
| import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace; |
| import org.eclipse.tracecompass.tmf.core.trace.TmfTraceUtils; |
| |
| /** |
| * @author Raphaël Beamonte |
| */ |
| public class StateMachineInstancesConstraintsTableViewer extends AbstractSegmentStoreTableViewer { |
| |
| // ------------------------------------------------------------------------ |
| // Constructor |
| // ------------------------------------------------------------------------ |
| |
| /** |
| * Constructor |
| * |
| * @param tableViewer |
| * The table viewer |
| */ |
| public StateMachineInstancesConstraintsTableViewer(TableViewer tableViewer) { |
| super(tableViewer); |
| } |
| |
| // ------------------------------------------------------------------------ |
| // Operations |
| // ------------------------------------------------------------------------ |
| |
| @Override |
| protected @Nullable ISegmentStoreProvider getSegmentStoreProvider(ITmfTrace trace) { |
| return TmfTraceUtils.getAnalysisModuleOfClass(trace, StateMachineAnalysis.class, StateMachineAnalysis.ANALYSIS_ID); |
| } |
| } |