critical path: Change relationship with graph builders
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.graph.ui / src / org / eclipse / tracecompass / internal / analysis / graph / ui / criticalpath / view / CriticalPathModuleListener.java
1 /*******************************************************************************
2 * Copyright (c) 2017 École Polytechnique de Montréal
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.graph.ui.criticalpath.view;
11
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;
17
18 /**
19 * @author Geneviève Bastien
20 */
21 public class CriticalPathModuleListener implements ITmfNewAnalysisModuleListener {
22
23 /**
24 * Constructor
25 */
26 public CriticalPathModuleListener() {
27
28 }
29
30 @Override
31 public void moduleCreated(@Nullable IAnalysisModule module) {
32 if (module instanceof TmfGraphBuilderModule) {
33 module.registerOutput(new TmfAnalysisViewOutput(CriticalPathView.ID, module.getId()));
34 }
35 }
36
37 }
This page took 0.030132 seconds and 5 git commands to generate.