[WIP] CFV Refactor
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / internal / provisional / tmf / core / views / timegraph2 / TimeGraphTreeElement.java
diff --git a/tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/internal/provisional/tmf/core/views/timegraph2/TimeGraphTreeElement.java b/tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/internal/provisional/tmf/core/views/timegraph2/TimeGraphTreeElement.java
new file mode 100644 (file)
index 0000000..4843fd2
--- /dev/null
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * Copyright (c) 2016 EfficiOS Inc., Alexandre Montplaisir
+ *
+ * All rights reserved. This program and the accompanying materials are
+ * made available under the terms of the Eclipse Public License v1.0 which
+ * accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *******************************************************************************/
+
+package org.eclipse.tracecompass.internal.provisional.tmf.core.views.timegraph2;
+
+import java.util.List;
+
+import com.google.common.base.Objects;
+import com.google.common.collect.ImmutableList;
+
+public class TimeGraphTreeElement {
+
+    private final String fName;
+    private final List<TimeGraphTreeElement> fChildElements;
+
+    public TimeGraphTreeElement(String name, List<TimeGraphTreeElement> children) {
+        fName = name;
+        fChildElements = ImmutableList.copyOf(children);
+    }
+
+    public String getName() {
+        return fName;
+    }
+
+    public List<TimeGraphTreeElement> getChildElements() {
+        return fChildElements;
+    }
+
+    @Override
+    public String toString() {
+        return Objects.toStringHelper(this)
+            .add("fName", fName) //$NON-NLS-1$
+            .add("fChildElements", fChildElements.toString()) //$NON-NLS-1$
+            .toString();
+    }
+
+}
This page took 0.025544 seconds and 5 git commands to generate.