Commit | Line | Data |
---|---|---|
c068a752 | 1 | /******************************************************************************* |
60ae41e1 | 2 | * Copyright (c) 2013, 2014 École Polytechnique de Montréal |
c068a752 GB |
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.linuxtools.tmf.ui.tests.stubs.analysis; | |
14 | ||
15 | import org.eclipse.core.runtime.IProgressMonitor; | |
16 | import org.eclipse.linuxtools.tmf.core.analysis.TmfAbstractAnalysisModule; | |
17 | import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace; | |
c068a752 GB |
18 | |
19 | /** | |
20 | * Stub for an analysis module with outputs | |
21 | */ | |
22 | public class TestAnalysisUi extends TmfAbstractAnalysisModule { | |
23 | ||
24 | /** ID of the view opened by this analysis module */ | |
25 | public static final String VIEW_ID = "org.eclipse.linuxtools.tmf.ui.tests.testAnalysisView"; | |
26 | ||
27 | private String fTraceName; | |
28 | ||
29 | /** | |
30 | * Constructor | |
31 | */ | |
32 | public TestAnalysisUi() { | |
33 | super(); | |
c068a752 GB |
34 | } |
35 | ||
36 | @Override | |
37 | protected boolean executeAnalysis(final IProgressMonitor monitor) { | |
38 | return false; | |
39 | } | |
40 | ||
41 | @Override | |
42 | protected void canceling() { | |
43 | ||
44 | } | |
45 | ||
46 | @Override | |
47 | public ITmfTrace getTrace() { | |
48 | return super.getTrace(); | |
49 | } | |
50 | ||
51 | /** | |
52 | * Returns the name of the trace that should be set | |
53 | * | |
54 | * @return Name of the trace | |
55 | */ | |
56 | public String getTraceName() { | |
57 | return fTraceName; | |
58 | } | |
59 | ||
60 | } |