tmf: Update Javadoc throughout tmf.ui
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / signal / TmfTraceParserUpdatedSignal.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.tmf.ui.signal;
14
15 import org.eclipse.core.resources.IResource;
16 import org.eclipse.linuxtools.tmf.core.signal.TmfSignal;
17
18 /**
19 * Signal indicating the trace parser has finished reading a chunk, so the
20 * parsing has been updated.
21 *
22 * @version 1.0
23 * @author Patrick Tasse
24 */
25 public class TmfTraceParserUpdatedSignal extends TmfSignal {
26
27 private final IResource fTraceResource;
28
29 /**
30 * Constructor for the signal.
31 *
32 * @param source The object sending this signal
33 * @param traceResource The trace resource concerning this signal
34 */
35 public TmfTraceParserUpdatedSignal(Object source, IResource traceResource) {
36 super(source);
37 fTraceResource = traceResource;
38 }
39
40 /**
41 * Get the trace resource object of this signal.
42 *
43 * @return The trace resource.
44 */
45 public IResource getTraceResource() {
46 return fTraceResource;
47 }
48
49 @Override
50 public String toString() {
51 return "[TmfTraceParserUpdatedSignal (" + fTraceResource.getName() + ")]"; //$NON-NLS-1$ //$NON-NLS-2$
52 }
53 }
This page took 0.031803 seconds and 5 git commands to generate.