1 /*******************************************************************************
2 * Copyright (c) 2009, 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 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.views
.project
.model
;
15 import org
.eclipse
.core
.resources
.IResource
;
18 * <b><u>TmfTraceNode</u></b>
20 * TODO: Implement me. Please.
22 public class TmfTraceNode
extends TmfProjectTreeNode
{
24 private final IResource fTrace
;
26 // ------------------------------------------------------------------------
28 // ------------------------------------------------------------------------
30 public TmfTraceNode(IResource trace
) {
34 public TmfTraceNode(ITmfProjectTreeNode parent
, IResource trace
) {
39 // ------------------------------------------------------------------------
41 // ------------------------------------------------------------------------
44 public String
getName() {
45 return fTrace
.getName();
49 public void refreshChildren() {
52 // ------------------------------------------------------------------------
54 // ------------------------------------------------------------------------
59 public TmfProjectNode
getProject() {
60 ITmfProjectTreeNode node
= this;
61 while (node
!= null) {
62 node
= node
.getParent();
63 if (node
instanceof TmfProjectNode
) {
64 return (TmfProjectNode
) node
;
73 public IResource
getResource() {