tmf: Drop generics from ITmfTrace and TmfExperiment
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / signal / TmfExperimentSelectedSignal.java
1 /*******************************************************************************
2 * Copyright (c) 2009 Ericsson
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 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.core.signal;
14
15 import org.eclipse.linuxtools.tmf.core.trace.TmfExperiment;
16
17 /**
18 * New experiment has been selected
19 *
20 * @version 1.0
21 * @author Francois Chouinard
22 */
23 public class TmfExperimentSelectedSignal extends TmfSignal {
24
25 private final TmfExperiment fExperiment;
26
27 /**
28 * Constructor
29 *
30 * @param source
31 * Object sending this signal
32 * @param experiment
33 * The experiment that was selected
34 */
35 public TmfExperimentSelectedSignal(Object source, TmfExperiment experiment) {
36 super(source);
37 fExperiment = experiment;
38 }
39
40 /**
41 * @return The experiment
42 */
43 public TmfExperiment getExperiment() {
44 return fExperiment;
45 }
46
47 @Override
48 @SuppressWarnings("nls")
49 public String toString() {
50 return "[TmfExperimentSelectedSignal (" + fExperiment.getName() + ")]";
51 }
52 }
This page took 0.031407 seconds and 5 git commands to generate.