Debugger - view constantpool

remove .0 suffixes on number values during debugging
This commit is contained in:
Jindra Petřík
2015-12-15 22:18:37 +01:00
parent 39171a0143
commit 27c60f3ff5
5 changed files with 67 additions and 3 deletions
@@ -507,6 +507,13 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<ABC
case VariableType.STRING:
return "\"" + Helper.escapeActionScriptString("" + v.value) + "\"";
default:
if (v.value instanceof Number) {
String sv = "" + v.value;
if (sv.endsWith(".0")) {
sv = sv.substring(0, sv.length() - 2);
}
return sv;
}
return "" + v.value;
}