Commented out the code that used Arrays.copyOf (a Java6 feature). This part is needed...
authorFrancois Chouinard <fchouinard@gmail.com>
Mon, 18 Jan 2010 18:56:57 +0000 (18:56 +0000)
committerFrancois Chouinard <fchouinard@gmail.com>
Mon, 18 Jan 2010 18:56:57 +0000 (18:56 +0000)
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/timeAnalysis/widgets/TmfTimeStatesCtrl.java

index a89a066ce897446c2181656c6945a6f26680016a..cf148e96bab2066d199834918b6d1cdef5daa33c 100644 (file)
@@ -2071,33 +2071,35 @@ class ItemData {
                // Find the Trace item within the current list\r
                TraceItem item = findTraceItem(parent);\r
 \r
-               if (item == null) {\r
-                       // If the parent item is not found, make room for it in the current\r
-                       // array\r
-                       int length = 1;\r
-                       Object[] traces;\r
-                       if (_traces != null) {\r
-                               length = _traces.length + 1;\r
-                               traces = Arrays.copyOf(_traces, length);\r
-                       } else {\r
-                               traces = new Object[length];\r
-                       }\r
-\r
-                       // Add the new parent element to the end of the array.\r
-                       traces[length - 1] = parent;\r
-\r
-                       // update the filter array to accomodate a postion to the new\r
-                       // element\r
-                       traceFilter = new boolean[traces.length];\r
-                       java.util.Arrays.fill(traceFilter, true);\r
-\r
-                       // rebuild internal data\r
-                       _traces = traces;\r
-                       refreshData();\r
-\r
-                       // item must be there\r
-                       item = findTraceItem(parent);\r
-               }\r
+// This method is not used (yet) so this code can be commented out for now\r
+// FIXME: Arrays.copyOf is a Java6 feature\r
+//             if (item == null) {\r
+//                     // If the parent item is not found, make room for it in the current\r
+//                     // array\r
+//                     int length = 1;\r
+//                     Object[] traces;\r
+//                     if (_traces != null) {\r
+//                             length = _traces.length + 1;\r
+//                             traces = Arrays.copyOf(_traces, length);\r
+//                     } else {\r
+//                             traces = new Object[length];\r
+//                     }\r
+//\r
+//                     // Add the new parent element to the end of the array.\r
+//                     traces[length - 1] = parent;\r
+//\r
+//                     // update the filter array to accomodate a postion to the new\r
+//                     // element\r
+//                     traceFilter = new boolean[traces.length];\r
+//                     java.util.Arrays.fill(traceFilter, true);\r
+//\r
+//                     // rebuild internal data\r
+//                     _traces = traces;\r
+//                     refreshData();\r
+//\r
+//                     // item must be there\r
+//                     item = findTraceItem(parent);\r
+//             }\r
 \r
                ITmfTimeAnalysisEntry localTraceItem = item._trace;\r
                // Local trace found\r
This page took 0.026527 seconds and 5 git commands to generate.