Commit | Line | Data |
---|---|---|
be222f56 PT |
1 | /******************************************************************************* |
2 | * Copyright (c) 2010 Ericsson | |
6151d86c | 3 | * |
be222f56 PT |
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 | |
6151d86c | 8 | * |
be222f56 PT |
9 | * Contributors: |
10 | * Patrick Tasse - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.linuxtools.internal.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 that a trace was closed | |
9a47bdf1 | 20 | * |
be222f56 PT |
21 | * @version 1.0 |
22 | * @author Patrick Tasse | |
23 | */ | |
24 | public class TmfTraceClosedSignal extends TmfSignal { | |
25 | ||
6151d86c PT |
26 | private final ITmfTrace fTrace; |
27 | ||
28 | public TmfTraceClosedSignal(Object source, ITmfTrace trace) { | |
be222f56 PT |
29 | super(source); |
30 | fTrace = trace; | |
31 | } | |
32 | ||
6151d86c | 33 | public ITmfTrace getTrace() { |
be222f56 PT |
34 | return fTrace; |
35 | } | |
36 | ||
37 | @Override | |
38 | public String toString() { | |
39 | return "[TmfTraceClosedSignal (" + fTrace.getName() + ")]"; //$NON-NLS-1$ //$NON-NLS-2$ | |
40 | } | |
41 | } |