Update javadoc
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / internal / tmf / ui / signal / TmfTraceOpenedSignal.java
1 /*******************************************************************************
2 * Copyright (c) 2010 Ericsson
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
13 package org.eclipse.linuxtools.internal.tmf.ui.signal;
14
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;
19
20 /**
21 * Signal that a trace was opened
22 *
23 * @version 1.0
24 * @author Patrick Tasse
25 */
26 public class TmfTraceOpenedSignal extends TmfSignal {
27
28 private final ITmfTrace<?> fTrace;
29 private final IFile fBookmarksFile;
30 private final ITmfEventsFilterProvider fEventsFilterProvider;
31
32 public TmfTraceOpenedSignal(Object source, ITmfTrace<?> trace, IFile bookmarksFile, ITmfEventsFilterProvider eventsFilterProvider) {
33 super(source);
34 fTrace = trace;
35 fBookmarksFile = bookmarksFile;
36 fEventsFilterProvider = eventsFilterProvider;
37 }
38
39 public ITmfTrace<?> getTrace() {
40 return fTrace;
41 }
42
43 public IFile getBookmarksFile() {
44 return fBookmarksFile;
45 }
46
47 public ITmfEventsFilterProvider getEventsFilterProvider() {
48 return fEventsFilterProvider;
49 }
50
51 @Override
52 public String toString() {
53 return "[TmfTraceOpenedSignal (" + fTrace.getName() + ")]"; //$NON-NLS-1$ //$NON-NLS-2$
54 }
55 }
This page took 0.030401 seconds and 5 git commands to generate.