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 / evProcessor / FlowAfterUpdateHandlers.java
index 770040c4e3966df6da94c3250cc58a37e42b685c..644352f29bca460704dbf50860ed0c8e7b2bd03a 100644 (file)
@@ -8,17 +8,18 @@
  * 
  * Contributors:
  *   Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
+ *   Michel Dagenais (michel.dagenais@polymtl.ca) - Reference C implementation, used with permission
  *******************************************************************************/
 package org.eclipse.linuxtools.lttng.ui.views.controlflow.evProcessor;
 
-import org.eclipse.linuxtools.lttng.event.LttngEvent;
-import org.eclipse.linuxtools.lttng.state.StateStrings.Fields;
-import org.eclipse.linuxtools.lttng.state.evProcessor.ILttngEventProcessor;
-import org.eclipse.linuxtools.lttng.state.model.LttngProcessState;
-import org.eclipse.linuxtools.lttng.state.model.LttngTraceState;
+import org.eclipse.linuxtools.lttng.core.event.LttngEvent;
+import org.eclipse.linuxtools.lttng.core.state.StateStrings.Fields;
+import org.eclipse.linuxtools.lttng.core.state.evProcessor.ILttngEventProcessor;
+import org.eclipse.linuxtools.lttng.core.state.model.LttngProcessState;
+import org.eclipse.linuxtools.lttng.core.state.model.LttngTraceState;
 import org.eclipse.linuxtools.lttng.ui.TraceDebug;
 import org.eclipse.linuxtools.lttng.ui.model.trange.TimeRangeEventProcess;
-import org.eclipse.linuxtools.tmf.event.TmfTimeRange;
+import org.eclipse.linuxtools.tmf.core.event.TmfTimeRange;
 
 /**
  * Creates instances of specific after state update handlers, per corresponding
@@ -54,7 +55,7 @@ class FlowAfterUpdateHandlers {
                                Long pid_in = getAFieldLong(trcEvent, traceSt, Fields.LTT_FIELD_NEXT_PID);
                                
                                if ( !(pid_in.equals(process_in.getPid())) ) {
-                                   TraceDebug.debug("pid_in != PID!  (getSchedChangeHandler)");
+                                   TraceDebug.debug("pid_in != PID!  (getSchedChangeHandler)"); //$NON-NLS-1$
                 }
                                
                                //hashed_process_data = processlist_get_process_data(process_list,pid_out,process->cpu,&birth,trace_num);
@@ -68,7 +69,7 @@ class FlowAfterUpdateHandlers {
                                        }
                                        else {
                                                TraceDebug
-                                                               .debug("pid_in is not 0 or pid_in == PPID!  (getSchedChangeHandler)");
+                                                               .debug("pid_in is not 0 or pid_in == PPID!  (getSchedChangeHandler)"); //$NON-NLS-1$
                                        }
                                }
 
@@ -140,7 +141,7 @@ class FlowAfterUpdateHandlers {
                             localProcess = addLocalProcess(process_child, timeRange.getStartTime().getValue(), timeRange.getEndTime().getValue(), traceSt.getTraceId());
                                    }
                                    else {
-                                       TraceDebug.debug("localProcess is null with child_pid not 0 or child_pid equals PPID (getProcessForkHandler)");
+                                       TraceDebug.debug("localProcess is null with child_pid not 0 or child_pid equals PPID (getProcessForkHandler)"); //$NON-NLS-1$
                                    }
                                        } else {
                                                // If we found the process, the Ppid and the Tgid might
@@ -150,7 +151,7 @@ class FlowAfterUpdateHandlers {
                                }
                            }
                            else {
-                               TraceDebug.debug("process_child is null! (getProcessForkHandler)");
+                               TraceDebug.debug("process_child is null! (getProcessForkHandler)"); //$NON-NLS-1$
                            }
                      
                                return false;
@@ -193,12 +194,12 @@ class FlowAfterUpdateHandlers {
                                    localProcess = addLocalProcess(process, timeRange.getStartTime().getValue(), timeRange.getEndTime().getValue(), traceSt.getTraceId());
                                    }
                                    else {
-                                       TraceDebug.debug("process pid is not 0 or pid equals ppid! (getProcessExitHandler)");
+                                       TraceDebug.debug("process pid is not 0 or pid equals ppid! (getProcessExitHandler)"); //$NON-NLS-1$
                                    }
                                        }
                            }
                            else {
-                               TraceDebug.debug("process is null! (getProcessExitHandler)");
+                               TraceDebug.debug("process is null! (getProcessExitHandler)"); //$NON-NLS-1$
                            }                       
                            
                                return false;
@@ -235,7 +236,7 @@ class FlowAfterUpdateHandlers {
                             localProcess = addLocalProcess(process, timeRange.getStartTime().getValue(), timeRange.getEndTime().getValue(), traceSt.getTraceId());
                         }
                         else {
-                            TraceDebug.debug("process pid is not 0 or pid equals ppid! (getProcessExecHandler)");
+                            TraceDebug.debug("process pid is not 0 or pid equals ppid! (getProcessExecHandler)"); //$NON-NLS-1$
                         }
                     }
                     else {
@@ -244,7 +245,7 @@ class FlowAfterUpdateHandlers {
                     }
                 }
                 else {
-                    TraceDebug.debug("process is null! (getProcessExecHandler)");
+                    TraceDebug.debug("process is null! (getProcessExecHandler)"); //$NON-NLS-1$
                 }
                 
                                return false;
@@ -285,7 +286,7 @@ class FlowAfterUpdateHandlers {
                             localProcess = addLocalProcess(process, timeRange.getStartTime().getValue(), timeRange.getEndTime().getValue(), traceSt.getTraceId());
                         }
                         else {
-                            TraceDebug.debug("process pid is not 0 or pid equals ppid! (GetThreadBrandHandler)");
+                            TraceDebug.debug("process pid is not 0 or pid equals ppid! (GetThreadBrandHandler)"); //$NON-NLS-1$
                         }
                     }
                     else {
@@ -295,7 +296,7 @@ class FlowAfterUpdateHandlers {
                     }
                 }
                 else {
-                    TraceDebug.debug("process is null! (GetThreadBrandHandler)");
+                    TraceDebug.debug("process is null! (GetThreadBrandHandler)"); //$NON-NLS-1$
                 }
                 
                 return false;
@@ -357,7 +358,7 @@ class FlowAfterUpdateHandlers {
                                     localProcess = addLocalProcess(process_in, timeRange.getStartTime().getValue(), timeRange.getEndTime().getValue(), traceSt.getTraceId());
                                 }
                                 else {
-                                    TraceDebug.debug("process pid is not 0 or pid equals ppid! (getEnumProcessStateHandler)");
+                                    TraceDebug.debug("process pid is not 0 or pid equals ppid! (getEnumProcessStateHandler)"); //$NON-NLS-1$
                                 }
                                    }
 
@@ -368,12 +369,12 @@ class FlowAfterUpdateHandlers {
                                                        localProcess.setTgid(process_in.getTgid());
                                }
                                else {
-                                   TraceDebug.debug("process_in is null! This should never happen. (getEnumProcessStateHandler)");
+                                   TraceDebug.debug("process_in is null! This should never happen. (getEnumProcessStateHandler)"); //$NON-NLS-1$
                                }
                            }
                            }
                            else {
-                               TraceDebug.debug("pid_in is null! This should never happen, really... (getEnumProcessStateHandler)");
+                               TraceDebug.debug("pid_in is null! This should never happen, really... (getEnumProcessStateHandler)"); //$NON-NLS-1$
                            }
                            
                                return false;
This page took 0.026343 seconds and 5 git commands to generate.