rcp: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ctf.core.tests / stubs / org / eclipse / tracecompass / tmf / ctf / core / tests / stubs / CtfTmfTraceStub.java
CommitLineData
beefb2d4 1/*******************************************************************************
ed902a2b 2 * Copyright (c) 2013, 2014 École Polytechnique de Montréal
beefb2d4
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 13package org.eclipse.tracecompass.tmf.ctf.core.tests.stubs;
beefb2d4 14
2bdf0193
AM
15import org.eclipse.tracecompass.tmf.core.signal.TmfSignalManager;
16import org.eclipse.tracecompass.tmf.core.signal.TmfTraceOpenedSignal;
17import org.eclipse.tracecompass.tmf.core.signal.TmfTraceSelectedSignal;
9722e5d7 18import org.eclipse.tracecompass.tmf.ctf.core.trace.CtfTmfTrace;
beefb2d4
GB
19
20/**
21 * Dummy test ctf trace
22 */
23public class CtfTmfTraceStub extends CtfTmfTrace {
24
b5ddd705
GB
25 /**
26 * Simulate trace opening, to be called by tests who need an actively opened
27 * trace
28 */
29 public void openTrace() {
30 TmfSignalManager.dispatchSignal(new TmfTraceOpenedSignal(this, this, null));
31 selectTrace();
32 }
33
34 /**
35 * Simulate selecting the trace
36 */
37 public void selectTrace() {
38 TmfSignalManager.dispatchSignal(new TmfTraceSelectedSignal(this, this));
39 }
40
beefb2d4 41}
This page took 0.061325 seconds and 5 git commands to generate.