(no commit message)
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / project / model / LTTngTraceNode.java
1 /*******************************************************************************
2 * Copyright (c) 2009, 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 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.lttng.ui.views.project.model;
14
15 import org.eclipse.core.resources.IFolder;
16
17 /**
18 * <b><u>LTTngTraceNode</u></b>
19 * <p>
20 * TODO: Implement me. Please.
21 */
22 public class LTTngTraceNode extends LTTngProjectTreeNode {
23
24 private final IFolder fTrace;
25
26 // ------------------------------------------------------------------------
27 // Constructors
28 // ------------------------------------------------------------------------
29
30 public LTTngTraceNode(IFolder folder) {
31 this(null, folder);
32 }
33
34 public LTTngTraceNode(ILTTngProjectTreeNode parent, IFolder trace) {
35 super(parent);
36 fTrace = trace;
37 }
38
39 // ------------------------------------------------------------------------
40 // LTTngProjectTreeNode
41 // ------------------------------------------------------------------------
42
43 public String getName() {
44 return fTrace.getName();
45 }
46
47 @Override
48 public void refreshChildren() {
49 }
50
51 // ------------------------------------------------------------------------
52 // Accessors
53 // ------------------------------------------------------------------------
54
55 /**
56 * @return
57 */
58 public LTTngProjectNode getProject() {
59 return (LTTngProjectNode) getParent().getParent();
60 }
61
62 /**
63 * @return
64 */
65 public IFolder getFolder() {
66 return fTrace;
67 }
68
69 }
This page took 0.032266 seconds and 5 git commands to generate.