analysis: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.analysis.xml.core / src / org / eclipse / tracecompass / tmf / analysis / xml / core / model / readwrite / TmfXmlReadWriteStateValue.java
index 50a1e2a5ce2b709128c4c6d026ba1e838c2a18c0..a9264234a6f0cce75b943cc842c84fed7403fb49 100644 (file)
@@ -202,7 +202,7 @@ public class TmfXmlReadWriteStateValue extends TmfXmlStateValue {
         }
     }
 
-    private static @Nullable ITmfStateValue incrementByType(int quark, long timestamp, ITmfStateSystem ss, ITmfStateValue stateValue) throws AttributeNotFoundException {
+    private static @Nullable ITmfStateValue incrementByType(int quark, ITmfStateSystem ss, ITmfStateValue stateValue) throws AttributeNotFoundException {
         ITmfStateValue value = null;
         switch (stateValue.getType()) {
         case LONG: {
@@ -247,7 +247,7 @@ public class TmfXmlReadWriteStateValue extends TmfXmlStateValue {
             if (ss == null) {
                 throw new IllegalStateException("The state system hasn't been initialized yet"); //$NON-NLS-1$
             }
-            ITmfStateValue value = incrementByType(quark, timestamp, ss, fValue);
+            ITmfStateValue value = incrementByType(quark, ss, fValue);
             if (value != null) {
                 processValue(quark, timestamp, value);
             } else {
@@ -282,7 +282,7 @@ public class TmfXmlReadWriteStateValue extends TmfXmlStateValue {
                 throw new IllegalStateException("The state system hasn't been initialized yet"); //$NON-NLS-1$
             }
             ITmfStateValue incrementValue = getValue(event);
-            ITmfStateValue value = incrementByType(quark, timestamp, ss, incrementValue);
+            ITmfStateValue value = incrementByType(quark, ss, incrementValue);
             if (value != null) {
                 processValue(quark, timestamp, value);
             } else {
@@ -300,7 +300,7 @@ public class TmfXmlReadWriteStateValue extends TmfXmlStateValue {
                 Activator.logWarning("XML State value: request event name, but event is null"); //$NON-NLS-1$
                 return TmfStateValue.nullValue();
             }
-            return TmfStateValue.newValueString(event.getType().getName());
+            return TmfStateValue.newValueString(event.getName());
         }
 
     }
@@ -372,7 +372,7 @@ public class TmfXmlReadWriteStateValue extends TmfXmlStateValue {
             }
 
             ITmfStateValue incrementValue = getValue(event);
-            ITmfStateValue value = incrementByType(quark, timestamp, ss, incrementValue);
+            ITmfStateValue value = incrementByType(quark, ss, incrementValue);
             if (value != null) {
                 processValue(quark, timestamp, value);
             } else {
This page took 0.028762 seconds and 5 git commands to generate.