Commit | Line | Data |
---|---|---|
46ab8ce3 FC |
1 | /*******************************************************************************\r |
2 | * Copyright (c) 2010 Ericsson\r | |
013a5f1c | 3 | *\r |
46ab8ce3 FC |
4 | * All rights reserved. This program and the accompanying materials are\r |
5 | * made available under the terms of the Eclipse Public License v1.0 which\r | |
6 | * accompanies this distribution, and is available at\r | |
7 | * http://www.eclipse.org/legal/epl-v10.html\r | |
013a5f1c | 8 | *\r |
46ab8ce3 FC |
9 | * Contributors:\r |
10 | * Patrick Tasse - Initial API and implementation\r | |
11 | *******************************************************************************/\r | |
12 | \r | |
13 | package org.eclipse.linuxtools.tmf.ui.signal;\r | |
14 | \r | |
6c13869b FC |
15 | import org.eclipse.linuxtools.tmf.core.signal.TmfSignal;\r |
16 | import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;\r | |
46ab8ce3 FC |
17 | \r |
18 | /**\r | |
013a5f1c AM |
19 | * Signal indicating a trace is now closed\r |
20 | *\r | |
21 | * @version 1.0\r | |
22 | * @author Patrick Tasse\r | |
46ab8ce3 FC |
23 | */\r |
24 | public class TmfTraceClosedSignal extends TmfSignal {\r | |
25 | \r | |
828e5592 | 26 | private final ITmfTrace<?> fTrace;\r |
013a5f1c AM |
27 | \r |
28 | /**\r | |
29 | * Constructor for a new signal\r | |
30 | *\r | |
31 | * @param source\r | |
32 | * The object sending this signal\r | |
33 | * @param trace\r | |
34 | * The trace being closed\r | |
35 | */\r | |
828e5592 | 36 | public TmfTraceClosedSignal(Object source, ITmfTrace<?> trace) {\r |
46ab8ce3 FC |
37 | super(source);\r |
38 | fTrace = trace;\r | |
39 | }\r | |
40 | \r | |
013a5f1c AM |
41 | /**\r |
42 | * Get a reference to the trace being closed\r | |
43 | *\r | |
44 | * @return The trace object\r | |
45 | */\r | |
828e5592 | 46 | public ITmfTrace<?> getTrace() {\r |
46ab8ce3 FC |
47 | return fTrace;\r |
48 | }\r | |
49 | \r | |
50 | @Override\r | |
51 | public String toString() {\r | |
52 | return "[TmfTraceClosedSignal (" + fTrace.getName() + ")]"; //$NON-NLS-1$ //$NON-NLS-2$\r | |
53 | }\r | |
54 | }\r |