1 /*******************************************************************************
2 * Copyright (c) 2016 EfficiOS Inc., Alexandre Montplaisir
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.tmf
.tests
.stubs
.analysis
.ondemand
;
12 import org
.eclipse
.core
.runtime
.IProgressMonitor
;
13 import org
.eclipse
.jdt
.annotation
.NonNullByDefault
;
14 import org
.eclipse
.jdt
.annotation
.Nullable
;
15 import org
.eclipse
.tracecompass
.tmf
.core
.analysis
.ondemand
.IOnDemandAnalysis
;
16 import org
.eclipse
.tracecompass
.tmf
.core
.timestamp
.TmfTimeRange
;
17 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfTrace
;
18 import org
.eclipse
.tracecompass
.tmf
.tests
.stubs
.trace
.TmfTraceStub2
;
21 * Stub for on-demand analysis tests.
23 * It applies to trace type {@link TmfTraceStub2} only.
25 * @author Alexandre Montplaisir
28 public class OnDemandAnalysisStub
implements IOnDemandAnalysis
{
31 public String
getName() {
32 return "Test On-Demand Analysis";
36 public boolean appliesTo(ITmfTrace trace
) {
37 if (trace
instanceof TmfTraceStub2
) {
44 public boolean canExecute(ITmfTrace trace
) {
45 return appliesTo(trace
);
49 public Object
execute(ITmfTrace trace
, @Nullable TmfTimeRange range
, String extraParams
, @Nullable IProgressMonitor monitor
) {
This page took 0.032453 seconds and 6 git commands to generate.