xml: Support type Double when using increment feature

[Fixed] support type Double when using increment feature

Change-Id: Iabae8c0e76f093c12f6d9d5fdc2d4e0dfc5a1b18
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/c/tracecompass/org.eclipse.tracecompass/+/183284
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
diff --git a/tmf/org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/core/fsm/model/DataDrivenActionStateChange.java b/tmf/org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/core/fsm/model/DataDrivenActionStateChange.java
index dc12119..2879856 100644
--- a/tmf/org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/core/fsm/model/DataDrivenActionStateChange.java
+++ b/tmf/org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/core/fsm/model/DataDrivenActionStateChange.java
@@ -213,6 +213,12 @@
             Integer currentValue = (currentState == null ? 0 : (Integer) currentState);
             return incrementLong + currentValue;
         }
+        if (stateValue instanceof Double) {
+            Double incrementLong = (Double) stateValue;
+            Object currentState = ss.queryOngoing(quark);
+            Double currentValue = (currentState == null ? 0 : (Double) currentState);
+            return incrementLong + currentValue;
+        }
         return stateValue;
     }