Fix EnumDefinition's "value" field assignments
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 20 Feb 2013 16:05:10 +0000 (11:05 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Wed, 20 Feb 2013 21:52:16 +0000 (16:52 -0500)
Change-Id: I927f904fab8f60e6d762541a36164dcc93650edb
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/10524
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDefinition.java

index f04f1d118cfcc789b1328cb9b50a4992781b6d6f..1fc57fa1a5c26fa76eba3f5db93668d0a17b7ec9 100644 (file)
@@ -54,7 +54,7 @@ public class EnumDefinition extends SimpleDatatypeDefinition {
 
         integerValue = declaration.getContainerType().createDefinition(
                 definitionScope, fieldName);
-        value = ((Long) integerValue.getValue()).toString();
+        value = declaration.query(integerValue.getValue());
     }
 
     // ------------------------------------------------------------------------
@@ -89,7 +89,7 @@ public class EnumDefinition extends SimpleDatatypeDefinition {
      */
     public void setIntegerValue(long Value) {
         integerValue.setValue(Value);
-        value = ((Long) integerValue.getValue()).toString();
+        value = declaration.query(Value);
     }
 
     @Override
This page took 0.028616 seconds and 5 git commands to generate.