Merge branch 'master' into lttng-kepler
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / signal / TmfTraceClosedSignal.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.ui.signal;
14
15 import org.eclipse.linuxtools.tmf.core.signal.TmfSignal;
16 import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
17
18 /**
19 * Signal indicating a trace is now closed
20 *
21 * @version 1.0
22 * @author Patrick Tasse
23 */
24 public class TmfTraceClosedSignal extends TmfSignal {
25
26 private final ITmfTrace fTrace;
27
28 /**
29 * Constructor for a new signal
30 *
31 * @param source
32 * The object sending this signal
33 * @param trace
34 * The trace being closed
35 */
36 public TmfTraceClosedSignal(Object source, ITmfTrace trace) {
37 super(source);
38 fTrace = trace;
39 }
40
41 /**
42 * Get a reference to the trace being closed
43 *
44 * @return The trace object
45 */
46 public ITmfTrace getTrace() {
47 return fTrace;
48 }
49
50 @Override
51 public String toString() {
52 return "[TmfTraceClosedSignal (" + fTrace.getName() + ")]"; //$NON-NLS-1$ //$NON-NLS-2$
53 }
54 }
This page took 0.031428 seconds and 5 git commands to generate.