Commit | Line | Data |
---|---|---|
8c8bf09f ASL |
1 | /******************************************************************************* |
2 | * Copyright (c) 2009 Ericsson | |
0283f7ff | 3 | * |
8c8bf09f ASL |
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 | |
0283f7ff | 8 | * |
8c8bf09f ASL |
9 | * Contributors: |
10 | * Francois Chouinard - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
6c13869b | 13 | package org.eclipse.linuxtools.tmf.core.signal; |
8c8bf09f | 14 | |
9e0640dc | 15 | import org.eclipse.linuxtools.tmf.core.trace.TmfExperiment; |
8c8bf09f ASL |
16 | |
17 | /** | |
4b7b3670 | 18 | * New experiment has been selected |
0283f7ff | 19 | * |
4b7b3670 FC |
20 | * @version 1.0 |
21 | * @author Francois Chouinard | |
8c8bf09f | 22 | */ |
6256d8ad | 23 | public class TmfExperimentSelectedSignal extends TmfSignal { |
8c8bf09f | 24 | |
6256d8ad | 25 | private final TmfExperiment fExperiment; |
8c8bf09f | 26 | |
4f8ca6a1 AM |
27 | /** |
28 | * Constructor | |
29 | * | |
30 | * @param source | |
31 | * Object sending this signal | |
32 | * @param experiment | |
33 | * The experiment that was selected | |
34 | */ | |
6256d8ad | 35 | public TmfExperimentSelectedSignal(Object source, TmfExperiment experiment) { |
4f8ca6a1 AM |
36 | super(source); |
37 | fExperiment = experiment; | |
38 | } | |
39 | ||
40 | /** | |
41 | * @return The experiment | |
42 | */ | |
6256d8ad | 43 | public TmfExperiment getExperiment() { |
4f8ca6a1 AM |
44 | return fExperiment; |
45 | } | |
8c8bf09f ASL |
46 | |
47 | @Override | |
3b38ea61 | 48 | @SuppressWarnings("nls") |
8c8bf09f ASL |
49 | public String toString() { |
50 | return "[TmfExperimentSelectedSignal (" + fExperiment.getName() + ")]"; | |
51 | } | |
52 | } |