1 /*******************************************************************************
2 * Copyright (c) 2010 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
.internal
.tmf
.ui
.signal
;
15 import org
.eclipse
.core
.resources
.IFile
;
16 import org
.eclipse
.linuxtools
.tmf
.core
.signal
.TmfSignal
;
17 import org
.eclipse
.linuxtools
.tmf
.core
.trace
.ITmfTrace
;
18 import org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.events
.ITmfEventsFilterProvider
;
21 * Signal that a trace was opened
24 * @author Patrick Tasse
26 public class TmfTraceOpenedSignal
extends TmfSignal
{
28 private final ITmfTrace fTrace
;
29 private final IFile fBookmarksFile
;
30 private final ITmfEventsFilterProvider fEventsFilterProvider
;
32 public TmfTraceOpenedSignal(Object source
, ITmfTrace trace
, IFile bookmarksFile
, ITmfEventsFilterProvider eventsFilterProvider
) {
35 fBookmarksFile
= bookmarksFile
;
36 fEventsFilterProvider
= eventsFilterProvider
;
39 public ITmfTrace
getTrace() {
43 public IFile
getBookmarksFile() {
44 return fBookmarksFile
;
47 public ITmfEventsFilterProvider
getEventsFilterProvider() {
48 return fEventsFilterProvider
;
52 public String
toString() {
53 return "[TmfTraceOpenedSignal (" + fTrace
.getName() + ")]"; //$NON-NLS-1$ //$NON-NLS-2$