1 /*******************************************************************************
2 * Copyright (c) 2016 É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
.tmf
.tests
.stubs
.analysis
;
12 import org
.eclipse
.tracecompass
.tmf
.core
.analysis
.IAnalysisModule
;
13 import org
.eclipse
.tracecompass
.tmf
.core
.analysis
.ITmfNewAnalysisModuleListener
;
16 * A test listener for newly created modules
18 * @author Geneviève Bastien
20 public class NewModuleListenerStub
implements ITmfNewAnalysisModuleListener
{
22 private static int fNewModuleCount
= 0;
25 public void moduleCreated(IAnalysisModule module
) {
30 * Get the count of newly created modules
32 * @return the number of modules that were created
34 public static int getModuleCount() {
35 return fNewModuleCount
;