Commit | Line | Data |
---|---|---|
46ab8ce3 FC |
1 | /*******************************************************************************\r |
2 | * Copyright (c) 2010 Ericsson\r | |
3 | * \r | |
4 | * All rights reserved. This program and the accompanying materials are\r | |
5 | * made available under the terms of the Eclipse Public License v1.0 which\r | |
6 | * accompanies this distribution, and is available at\r | |
7 | * http://www.eclipse.org/legal/epl-v10.html\r | |
8 | * \r | |
9 | * Contributors:\r | |
10 | * Patrick Tasse - Initial API and implementation\r | |
11 | *******************************************************************************/\r | |
12 | \r | |
13 | package org.eclipse.linuxtools.tmf.ui.signal;\r | |
14 | \r | |
15 | import org.eclipse.core.resources.IResource;\r | |
16 | import org.eclipse.linuxtools.tmf.signal.TmfSignal;\r | |
17 | import org.eclipse.linuxtools.tmf.trace.ITmfTrace;\r | |
18 | import org.eclipse.linuxtools.tmf.ui.viewers.events.ITmfEventsFilterProvider;\r | |
19 | \r | |
20 | /**\r | |
21 | * <b><u>TmfTraceOpenedSignal</u></b>\r | |
22 | */\r | |
23 | public class TmfTraceOpenedSignal extends TmfSignal {\r | |
24 | \r | |
25 | private final ITmfTrace fTrace;\r | |
26 | private final IResource fResource;\r | |
27 | private final ITmfEventsFilterProvider fEventsFilterProvider;\r | |
28 | \r | |
29 | public TmfTraceOpenedSignal(Object source, ITmfTrace trace, IResource resource, ITmfEventsFilterProvider eventsFilterProvider) {\r | |
30 | super(source);\r | |
31 | fTrace = trace;\r | |
32 | fResource = resource;\r | |
33 | fEventsFilterProvider = eventsFilterProvider;\r | |
34 | }\r | |
35 | \r | |
36 | public ITmfTrace getTrace() {\r | |
37 | return fTrace;\r | |
38 | }\r | |
39 | \r | |
40 | public IResource getResource() {\r | |
41 | return fResource;\r | |
42 | }\r | |
43 | \r | |
44 | public ITmfEventsFilterProvider getEventsFilterProvider() {\r | |
45 | return fEventsFilterProvider;\r | |
46 | }\r | |
47 | \r | |
48 | @Override\r | |
49 | public String toString() {\r | |
50 | return "[TmfTraceOpenedSignal (" + fTrace.getName() + ")]"; //$NON-NLS-1$ //$NON-NLS-2$\r | |
51 | }\r | |
52 | }\r |