Merge branch 'master' into lttng-kepler
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / signal / TmfTraceSelectedSignal.java
1 /*******************************************************************************
2 * Copyright (c) 2010 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 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.core.signal;
14
15 import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
16
17 /**
18 * A trace was selected
19 *
20 * @version 1.0
21 * @author Patrick Tasse
22 */
23 public class TmfTraceSelectedSignal extends TmfSignal {
24
25 private final ITmfTrace fTrace;
26
27 /**
28 * Constructor
29 *
30 * @param source
31 * Object sending this signal
32 * @param trace
33 * The trace that was selected
34 */
35 public TmfTraceSelectedSignal(Object source, ITmfTrace trace) {
36 super(source);
37 fTrace = trace;
38 }
39
40 /**
41 * @return The trace referred to by this signal
42 */
43 public ITmfTrace getTrace() {
44 return fTrace;
45 }
46
47 @Override
48 public String toString() {
49 return "[TmfTraceSelectedSignal (" + fTrace.getName() + ")]"; //$NON-NLS-1$ //$NON-NLS-2$
50 }
51 }
This page took 0.031755 seconds and 5 git commands to generate.