tmf: Fix the actual end time of state system modules
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / signal / TmfTraceOpenedSignal.java
CommitLineData
6151d86c 1/*******************************************************************************
deaae6e1 2 * Copyright (c) 2012, 2014 Ericsson
6151d86c
PT
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
2bdf0193 13package org.eclipse.tracecompass.tmf.core.signal;
6151d86c
PT
14
15import org.eclipse.core.resources.IFile;
2bdf0193 16import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
6151d86c
PT
17
18/**
19 * Signal indicating a trace has been opened.
20 *
faa38350
PT
21 * Receivers can get ready to receive TmfTraceRangeUpdatedSignal for coalescing
22 * and can expect TmfTraceSelectedSignal to follow.
23 *
6151d86c
PT
24 * @author Patrick Tasse
25 */
26public class TmfTraceOpenedSignal extends TmfSignal {
27
28 private final ITmfTrace fTrace;
deaae6e1 29 private final IFile fEditorFile;
6151d86c
PT
30
31 /**
32 * Constructor for a new signal.
33 *
34 * @param source
35 * The object sending this signal
36 * @param trace
37 * The trace that has been opened
deaae6e1
PT
38 * @param editorFile
39 * Pointer to the editor file
6151d86c 40 */
deaae6e1 41 public TmfTraceOpenedSignal(Object source, ITmfTrace trace, IFile editorFile) {
6151d86c
PT
42 super(source);
43 fTrace = trace;
deaae6e1 44 fEditorFile = editorFile;
6151d86c
PT
45 }
46
47 /**
48 * Get the trace object concerning this signal
49 *
50 * @return The trace
51 */
52 public ITmfTrace getTrace() {
53 return fTrace;
54 }
55
56 /**
deaae6e1 57 * Get a pointer to the editor file for this trace
6151d86c
PT
58 *
59 * @return The IFile object
60 */
deaae6e1
PT
61 public IFile getEditorFile() {
62 return fEditorFile;
6151d86c
PT
63 }
64
6151d86c
PT
65 @Override
66 public String toString() {
67 return "[TmfTraceOpenedSignal (" + fTrace.getName() + ")]"; //$NON-NLS-1$ //$NON-NLS-2$
68 }
69}
This page took 0.081152 seconds and 5 git commands to generate.