Re-structure LTTng sub-project as per the Linux Tools guidelines
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / controlflow / model / FlowProcessContainer.java
index 97a6ff542d315f1d88d228bd0edd7663d8037edc..f3b0053f8fabd64016a69a25c00590d749e013d0 100644 (file)
@@ -8,13 +8,14 @@
  * 
  * Contributors:
  *   Alvaro Sanchez-Leon - Initial API and implementation
+ *      Michel Dagenais (michel.dagenais@polymtl.ca) - Reference C implementation, used with permission
  *******************************************************************************/
 package org.eclipse.linuxtools.lttng.ui.views.controlflow.model;
 
 import java.util.HashMap;
 import java.util.Iterator;
 
-import org.eclipse.linuxtools.lttng.TraceDebug;
+import org.eclipse.linuxtools.lttng.core.TraceDebug;
 import org.eclipse.linuxtools.lttng.ui.model.trange.ItemContainer;
 import org.eclipse.linuxtools.lttng.ui.model.trange.TimeRangeEventProcess;
 
@@ -52,6 +53,7 @@ public class FlowProcessContainer implements ItemContainer<TimeRangeEventProcess
         * 
         * @param newProcess   The process to add
         */
+       @Override
        public void addItem(TimeRangeEventProcess newItem) {
                if (newItem != null) {
                        allProcesses.put(new ProcessKey(newItem), newItem);
@@ -63,7 +65,8 @@ public class FlowProcessContainer implements ItemContainer<TimeRangeEventProcess
      * 
      * @return Integer
      */
-    public Integer getUniqueId() {
+    @Override
+       public Integer getUniqueId() {
         return uniqueId++;
     }
     
@@ -73,6 +76,7 @@ public class FlowProcessContainer implements ItemContainer<TimeRangeEventProcess
      * 
      * @return TimeRangeEventProcess[]
      */
+       @Override
        public TimeRangeEventProcess[] readItems() {
                
            // This allow us to return an Array of the correct type of the exact correct dimension, without looping
@@ -83,6 +87,7 @@ public class FlowProcessContainer implements ItemContainer<TimeRangeEventProcess
         * Clear the children information for processes e.g. just before refreshing
         * data with a new time range
         */
+       @Override
        public void clearChildren() {
            TimeRangeEventProcess process = null;
         Iterator<ProcessKey> iterator = allProcesses.keySet().iterator();
@@ -96,7 +101,8 @@ public class FlowProcessContainer implements ItemContainer<TimeRangeEventProcess
        /**
      * Clear all process items
      */
-    public void clearItems() {
+    @Override
+       public void clearItems() {
         allProcesses.clear();
     }
        
@@ -106,6 +112,7 @@ public class FlowProcessContainer implements ItemContainer<TimeRangeEventProcess
      * 
      * @param traceId   The trace unique id (trace name?) on which we want to remove process
      */
+       @Override
        public void removeItems(String traceId) {
            ProcessKey iterKey = null;
 
@@ -194,7 +201,7 @@ class ProcessKey {
                        }
         }
         else {
-               TraceDebug.debug("ERROR : The given key is not of the type ProcessKey!" + obj.getClass().toString());
+               TraceDebug.debug("ERROR : The given key is not of the type ProcessKey!" + obj.getClass().toString()); //$NON-NLS-1$
         }
         
         return isSame;
@@ -244,7 +251,8 @@ class ProcessKey {
     }
     
     
-    @Override
+       @Override
+    @SuppressWarnings("nls")
     public String toString() {
         if ( valueRef != null ) {
                        // return (valueRef.getPid().toString() + ":" +
This page took 0.024601 seconds and 5 git commands to generate.