1 /*******************************************************************************
2 * Copyright (c) 2012, 2014 Ericsson
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
10 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.core
.signal
;
15 import org
.eclipse
.core
.resources
.IFile
;
16 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfTrace
;
19 * Signal indicating a trace has been opened.
21 * Receivers can get ready to receive TmfTraceRangeUpdatedSignal for coalescing
22 * and can expect TmfTraceSelectedSignal to follow.
24 * @author Patrick Tasse
26 public class TmfTraceOpenedSignal
extends TmfSignal
{
28 private final ITmfTrace fTrace
;
29 private final IFile fEditorFile
;
32 * Constructor for a new signal.
35 * The object sending this signal
37 * The trace that has been opened
39 * Pointer to the editor file
41 public TmfTraceOpenedSignal(Object source
, ITmfTrace trace
, IFile editorFile
) {
44 fEditorFile
= editorFile
;
48 * Get the trace object concerning this signal
52 public ITmfTrace
getTrace() {
57 * Get a pointer to the editor file for this trace
59 * @return The IFile object
61 public IFile
getEditorFile() {
66 public String
toString() {
67 return "[TmfTraceOpenedSignal (" + fTrace
.getName() + ")]"; //$NON-NLS-1$ //$NON-NLS-2$
This page took 0.034399 seconds and 6 git commands to generate.