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