tmf: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core.tests / stubs / org / eclipse / tracecompass / tmf / tests / stubs / analysis / AnalysisModuleSourceStub.java
1 /*******************************************************************************
2 * Copyright (c) 2013, 2014 É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 * Contributors:
10 * Geneviève Bastien - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.tracecompass.tmf.tests.stubs.analysis;
14
15 import java.util.ArrayList;
16 import java.util.List;
17
18 import org.eclipse.tracecompass.tmf.core.analysis.IAnalysisModuleHelper;
19 import org.eclipse.tracecompass.tmf.core.analysis.IAnalysisModuleSource;
20 import org.eclipse.tracecompass.tmf.tests.stubs.analysis.AnalysisModuleTestHelper.moduleStubEnum;
21
22 /**
23 * Stub class for analysis module source
24 *
25 * @author Geneviève Bastien
26 */
27 public class AnalysisModuleSourceStub implements IAnalysisModuleSource {
28
29 @Override
30 public Iterable<IAnalysisModuleHelper> getAnalysisModules() {
31 List<IAnalysisModuleHelper> list = new ArrayList<>();
32 IAnalysisModuleHelper helper = new AnalysisModuleTestHelper(moduleStubEnum.TEST);
33 list.add(helper);
34 helper = new AnalysisModuleTestHelper(moduleStubEnum.TEST2);
35 list.add(helper);
36 return list;
37 }
38
39 }
This page took 0.031229 seconds and 5 git commands to generate.