| author | Simon Marchi | 2013-02-20 11:05:10 (EST) |
|---|---|---|
| committer | Matthew Khouzam | 2013-02-20 16:52:16 (EST) |
| commit | 92b9d7d6f6ae06a8f9b4d465e6080c4b302a3859 (patch) (side-by-side diff) | |
| tree | eb7a479ccddd01bce081ca1c644b33a309d1d1a5 | |
| parent | 38cda7b0edca05287ec618505b7cd45cf37300de (diff) | |
| download | org.eclipse.linuxtools-92b9d7d6f6ae06a8f9b4d465e6080c4b302a3859.zip org.eclipse.linuxtools-92b9d7d6f6ae06a8f9b4d465e6080c4b302a3859.tar.gz org.eclipse.linuxtools-92b9d7d6f6ae06a8f9b4d465e6080c4b302a3859.tar.bz2 | |
Fix EnumDefinition's "value" field assignmentsrefs/changes/24/10524/3
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>
| -rw-r--r-- | lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDefinition.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDefinition.java b/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDefinition.java index f04f1d1..1fc57fa 100644 --- a/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDefinition.java +++ b/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDefinition.java @@ -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 |

