TMF: Introduce a framework to hook trace analysis modules/plugins
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui.tests / widgetStubs / org / eclipse / linuxtools / tmf / ui / tests / stubs / analysis / TestAnalysisUi.java
CommitLineData
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
13package org.eclipse.linuxtools.tmf.ui.tests.stubs.analysis;
14
15import org.eclipse.core.runtime.IProgressMonitor;
16import org.eclipse.linuxtools.tmf.core.analysis.TmfAbstractAnalysisModule;
17import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
18import org.eclipse.linuxtools.tmf.ui.analysis.TmfAnalysisViewOutput;
19
20/**
21 * Stub for an analysis module with outputs
22 */
23public 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}
This page took 0.045405 seconds and 5 git commands to generate.