1 /*******************************************************************************
2 * Copyright (c) 2013, 2014 École Polytechnique de Montréal
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
10 * Geneviève Bastien - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.tests
.stubs
.analysis
;
15 import org
.eclipse
.core
.runtime
.IProgressMonitor
;
16 import org
.eclipse
.tracecompass
.tmf
.core
.analysis
.TmfAbstractAnalysisModule
;
17 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfTrace
;
18 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.TmfTraceManager
;
19 import org
.eclipse
.tracecompass
.tmf
.tests
.stubs
.trace
.TmfTraceStub2
;
22 * Simple analysis type for test
24 public class TestAnalysis2
extends TmfAbstractAnalysisModule
{
27 public boolean canExecute(ITmfTrace trace
) {
28 /* This just makes sure the trace is or contains a trace stub 2 */
29 for (ITmfTrace aTrace
: TmfTraceManager
.getTraceSet(trace
)) {
30 if (TmfTraceStub2
.class.isAssignableFrom(aTrace
.getClass())) {
38 protected void canceling() {
43 protected boolean executeAnalysis(final IProgressMonitor monitor
) {