1 /*******************************************************************************
2 * Copyright (c) 2017 É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
.internal
.analysis
.graph
.ui
.criticalpath
.view
;
12 import org
.eclipse
.jdt
.annotation
.Nullable
;
13 import org
.eclipse
.tracecompass
.analysis
.graph
.core
.building
.TmfGraphBuilderModule
;
14 import org
.eclipse
.tracecompass
.tmf
.core
.analysis
.IAnalysisModule
;
15 import org
.eclipse
.tracecompass
.tmf
.core
.analysis
.ITmfNewAnalysisModuleListener
;
16 import org
.eclipse
.tracecompass
.tmf
.ui
.analysis
.TmfAnalysisViewOutput
;
19 * @author Geneviève Bastien
21 public class CriticalPathModuleListener
implements ITmfNewAnalysisModuleListener
{
26 public CriticalPathModuleListener() {
31 public void moduleCreated(@Nullable IAnalysisModule module
) {
32 if (module
instanceof TmfGraphBuilderModule
) {
33 module
.registerOutput(new TmfAnalysisViewOutput(CriticalPathView
.ID
, module
.getId()));