1 /*******************************************************************************
2 * Copyright (c) 2012 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
.linuxtools
.tmf
.core
.signal
;
15 import org
.eclipse
.core
.resources
.IFile
;
16 import org
.eclipse
.linuxtools
.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.
25 * @author Patrick Tasse
28 public class TmfTraceOpenedSignal
extends TmfSignal
{
30 private final ITmfTrace fTrace
;
31 private final IFile fBookmarksFile
;
34 * Constructor for a new signal.
37 * The object sending this signal
39 * The trace that has been opened
40 * @param bookmarksFile
41 * Pointer to the bookmark file
43 public TmfTraceOpenedSignal(Object source
, ITmfTrace trace
, IFile bookmarksFile
) {
46 fBookmarksFile
= bookmarksFile
;
50 * Get the trace object concerning this signal
54 public ITmfTrace
getTrace() {
59 * Get a pointer to the bookmark file of this trace
61 * @return The IFile object
63 public IFile
getBookmarksFile() {
64 return fBookmarksFile
;
68 public String
toString() {
69 return "[TmfTraceOpenedSignal (" + fTrace
.getName() + ")]"; //$NON-NLS-1$ //$NON-NLS-2$
This page took 0.031956 seconds and 5 git commands to generate.