March 24, 2010
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui.tests / widgetStubs / org / eclipse / linuxtools / tmf / ui / widgets / timeAnalysis / test / stub / model / TraceImpl.java
index ede64079e6c31189b45fdff5bc9d1c30c1894d19..7ffc2d1cf4a94ef0122feba013b4fe2ead9fbb29 100644 (file)
@@ -1,3 +1,14 @@
+/*******************************************************************************\r
+ * Copyright (c) 2009, 2010 Ericsson\r
+ * \r
+ * All rights reserved. This program and the accompanying materials are\r
+ * made available under the terms of the Eclipse Public License v1.0 which\r
+ * accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ * \r
+ * Contributors:\r
+ *   Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation\r
+ *******************************************************************************/\r
 package org.eclipse.linuxtools.tmf.ui.widgets.timeAnalysis.test.stub.model;\r
 \r
 import java.util.Vector;\r
@@ -7,22 +18,20 @@ import org.eclipse.linuxtools.tmf.ui.viewers.timeAnalysis.model.TimeEvent;
 \r
 \r
 public class TraceImpl implements ITmfTimeAnalysisEntry {\r
+       // ========================================================================\r
+       // Data\r
+       // ========================================================================\r
        private int id = 0;\r
        private String name = "traceDefaultName";\r
        private long startTime = 0;\r
        private long stopTime = 1;\r
        private String groupName = "defaultGroupName";\r
        private String className = "defaultClassName";\r
-       \r
-       public String getClassName() {\r
-               return className;\r
-       }\r
-\r
-       public void setClassName(String className) {\r
-               this.className = className;\r
-       }\r
-\r
        private Vector<TimeEvent> traceEvents = new Vector<TimeEvent>();\r
+       \r
+       // ========================================================================\r
+       // Constructor\r
+       // ========================================================================\r
 \r
        public TraceImpl(int id, String name, long sTime, long stopTime,\r
                        String groupName, String className) {\r
@@ -34,6 +43,18 @@ public class TraceImpl implements ITmfTimeAnalysisEntry {
                this.className = className;\r
        }\r
 \r
+       // ========================================================================\r
+       // Methods\r
+       // ========================================================================\r
+\r
+       public String getClassName() {\r
+               return className;\r
+       }\r
+\r
+       public void setClassName(String className) {\r
+               this.className = className;\r
+       }\r
+\r
        public void setGroupName(String groupName) {\r
                this.groupName = groupName;\r
        }\r
This page took 0.024536 seconds and 5 git commands to generate.