TMF: Introduce a framework to hook trace analysis modules/plugins
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / stubs / org / eclipse / linuxtools / tmf / tests / stubs / analysis / TestCtfAnalysis.java
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.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.tests.stubs.ctf.CtfTmfTraceStub;
19
20 /**
21 * Simple analysis type for test
22 */
23 public class TestCtfAnalysis extends TmfAbstractAnalysisModule{
24
25 @Override
26 public boolean canExecute(ITmfTrace trace) {
27 /* This just makes sure the trace is a ctf stub trace */
28 return (CtfTmfTraceStub.class.isAssignableFrom(trace.getClass()));
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 }
This page took 0.044355 seconds and 5 git commands to generate.