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 - 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 originalTS
, TmfTimestamp effectiveTS
, TmfEventSource source
,
49 TmfEventType type
, TmfEventContent content
, TmfEventReference reference
,
50 String path
, String file
, int line
)
52 super(originalTS
, effectiveTS
, source
, type
,content
, reference
);
67 public TmfTraceEvent(TmfTimestamp timestamp
, TmfEventSource source
, TmfEventType type
,
68 TmfEventContent content
, TmfEventReference reference
,
69 String path
, String file
, int line
)
71 super(timestamp
, source
, type
,content
, reference
);
77 // ========================================================================
79 // ========================================================================
84 public String
getSourcePath() {
91 public String
getFileName() {
98 public int getLineNumber() {