tmf: Do not define base aspects in the interface
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core.tests / stubs / org / eclipse / tracecompass / tmf / tests / stubs / analysis / NewModuleListenerStub.java
1 /*******************************************************************************
2 * Copyright (c) 2016 É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.tmf.tests.stubs.analysis;
11
12 import org.eclipse.tracecompass.tmf.core.analysis.IAnalysisModule;
13 import org.eclipse.tracecompass.tmf.core.analysis.ITmfNewAnalysisModuleListener;
14
15 /**
16 * A test listener for newly created modules
17 *
18 * @author Geneviève Bastien
19 */
20 public class NewModuleListenerStub implements ITmfNewAnalysisModuleListener {
21
22 private static int fNewModuleCount = 0;
23
24 @Override
25 public void moduleCreated(IAnalysisModule module) {
26 fNewModuleCount++;
27 }
28
29 /**
30 * Get the count of newly created modules
31 *
32 * @return the number of modules that were created
33 */
34 public static int getModuleCount() {
35 return fNewModuleCount;
36 }
37
38 }
This page took 0.032071 seconds and 5 git commands to generate.