Commit | Line | Data |
---|---|---|
c068a752 | 1 | /******************************************************************************* |
ed902a2b | 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 | ||
2bdf0193 | 13 | package org.eclipse.tracecompass.tmf.tests.stubs.analysis; |
c068a752 GB |
14 | |
15 | import org.eclipse.core.runtime.IProgressMonitor; | |
2bdf0193 AM |
16 | import org.eclipse.tracecompass.tmf.core.analysis.TmfAbstractAnalysisModule; |
17 | import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace; | |
18 | import org.eclipse.tracecompass.tmf.tests.stubs.trace.TmfTraceStub2; | |
c068a752 GB |
19 | |
20 | /** | |
21 | * Simple analysis type for test | |
22 | */ | |
4d2857be | 23 | public class TestAnalysis2 extends TmfAbstractAnalysisModule { |
c068a752 GB |
24 | |
25 | @Override | |
26 | public boolean canExecute(ITmfTrace trace) { | |
4d2857be GB |
27 | /* This just makes sure the trace is a trace stub 2 */ |
28 | return (TmfTraceStub2.class.isAssignableFrom(trace.getClass())); | |
c068a752 GB |
29 | } |
30 | ||
31 | @Override | |
32 | protected void canceling() { | |
33 | ||
34 | } | |
35 | ||
36 | @Override | |
37 | protected boolean executeAnalysis(final IProgressMonitor monitor) { | |
38 | return false; | |
39 | } | |
40 | ||
41 | } |