1 /*******************************************************************************
2 * Copyright (c) 2009 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 * Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.event
;
16 * <b><u>TmfTraceEvent</u></b>
18 * A trace event associates a source code line to an event. The intent is to
19 * provide the capability to open an editor at the line of code that produced
22 * TODO: Concept is still a bit vague and should be aligned with the CDT
23 * source lookup service.
25 public class TmfTraceEvent
extends TmfEvent
{
27 // ========================================================================
29 // ========================================================================
31 private final String fSourcePath
;
32 private final String fFileName
;
33 private final int fLineNumber
;
35 // ========================================================================
37 // ========================================================================
48 public TmfTraceEvent(TmfTimestamp timestamp
, TmfEventSource source
, TmfEventType type
,
49 TmfEventContent content
, TmfEventReference reference
,
50 String path
, String file
, int line
)
52 super(timestamp
, source
, type
,content
, reference
);
58 // ========================================================================
60 // ========================================================================
65 public String
getSourcePath() {
72 public String
getFileName() {
79 public int getLineNumber() {