tmf: Don't use ITmfEventField in TmfEventsTable
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / parsers / custom / CustomEvent.java
index 95d93aebd639aa8f73e02bd8d792e51c0eac4d6a..10ecebe7acc8820679064f23a5d2a0f8dc9ebf2d 100644 (file)
@@ -13,7 +13,6 @@
 package org.eclipse.linuxtools.tmf.core.parsers.custom;
 
 import java.text.ParseException;
-import java.util.Arrays;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -180,13 +179,20 @@ public class CustomEvent extends TmfEvent {
     // ------------------------------------------------------------------------
 
     /**
-     * @return The event fields
+     * Get the contents of the row in the events table corresponding to this
+     * event. The order of the elements corresponds to the order of the columns.
+     *
+     * @return The event row entries
      */
-    public TmfEventField[] extractItemFields() {
+    public String[] getEventStrings() {
         if (fData != null) {
             processData();
         }
-        return Arrays.copyOf(fColumnData, fColumnData.length);
+        String[] entries = new String[fColumnData.length];
+        for (int i = 0; i < fColumnData.length; i++) {
+            entries[i] = fColumnData[i].getValue().toString();
+        }
+        return entries;
     }
 
     private void processData() {
This page took 0.02464 seconds and 5 git commands to generate.