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.tmf.ui.signal;
15
import org.eclipse.core.resources.IResource;
16
import org.eclipse.linuxtools.tmf.core.signal.TmfSignal;
19
* Signal indicating the trace parser has finished reading a chunk, so the
20
* parsing has been updated.
23
* @author Patrick Tasse
25
public class TmfTraceParserUpdatedSignal extends TmfSignal {
27
private final IResource fTraceResource;
30
* Constructor for the signal.
32
* @param source The object sending this signal
33
* @param traceResource The trace resource concerning this signal
35
public TmfTraceParserUpdatedSignal(Object source, IResource traceResource) {
37
fTraceResource = traceResource;
41
* Get the trace resource object of this signal.
43
* @return The trace resource.
45
public IResource getTraceResource() {
46
return fTraceResource;
50
public String toString() {
51
return "[TmfTraceParserUpdatedSignal (" + fTraceResource.getName() + ")]"; //$NON-NLS-1$ //$NON-NLS-2$