~ubuntu-branches/ubuntu/trusty/eclipse-linuxtools/trusty

« back to all changes in this revision

Viewing changes to lttng/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/model/LTTngTreeNode.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2012-06-29 12:07:30 UTC
  • Revision ID: package-import@ubuntu.com-20120629120730-bfri1xys1i71dpn6
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 *   Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
 
11
 *******************************************************************************/
 
12
package org.eclipse.linuxtools.internal.lttng.core.model;
 
13
 
 
14
 
 
15
public class LTTngTreeNode extends
 
16
                LTTngTreeNodeGeneric<LTTngTreeNode> {
 
17
 
 
18
        // ========================================================================
 
19
        // Data
 
20
        // ========================================================================
 
21
 
 
22
 
 
23
        // ========================================================================
 
24
        // Constructors
 
25
        // ========================================================================
 
26
        /**
 
27
         * @param id
 
28
         * @param parent
 
29
         * @param name
 
30
         */
 
31
        public LTTngTreeNode(Long id, LTTngTreeNode parent, String name) {
 
32
                super(id, parent, name, null);
 
33
        }
 
34
 
 
35
        /**
 
36
         * @param id
 
37
         * @param parent
 
38
         * @param name
 
39
         * @param value
 
40
         */
 
41
        public LTTngTreeNode(Long id, LTTngTreeNode parent, String name,
 
42
                        Object value) {
 
43
                super(id, parent, name, value);
 
44
        }
 
45
 
 
46
        /**
 
47
         * When parent is not know just yet
 
48
         * 
 
49
         * @param id
 
50
         * @param name
 
51
         * @param value
 
52
         */
 
53
        public LTTngTreeNode(Long id, String name, Object value) {
 
54
                this(id, null, name, value);
 
55
        }
 
56
 
 
57
        /*
 
58
         * (non-Javadoc)
 
59
         * 
 
60
         * @see
 
61
         * org.eclipse.linuxtools.lttng.model.LTTngTreeNodeGeneric#getChildren()
 
62
         */
 
63
        @Override
 
64
        public LTTngTreeNode[] getChildren() {
 
65
                return childrenToArray(fchildren.values(), this.getClass());
 
66
        }
 
67
 
 
68
}