|
@@ -36,7 +36,7 @@ public class IntegerEditingSupport extends ScopeSlotEditingSupport {
|
|
|
textCellEditor.setValidator(new ICellEditorValidator() {
|
|
textCellEditor.setValidator(new ICellEditorValidator() {
|
|
|
public String isValid(Object value) {
|
|
public String isValid(Object value) {
|
|
|
try {
|
|
try {
|
|
|
- Integer.parseInt((String) value);
|
|
|
|
|
|
|
+ Long.parseLong((String) value);
|
|
|
} catch (NumberFormatException e) {
|
|
} catch (NumberFormatException e) {
|
|
|
return "No valid integer value!";
|
|
return "No valid integer value!";
|
|
|
}
|
|
}
|
|
@@ -55,7 +55,7 @@ public class IntegerEditingSupport extends ScopeSlotEditingSupport {
|
|
|
@Override
|
|
@Override
|
|
|
protected Object convertValue(Object element, Object value) {
|
|
protected Object convertValue(Object element, Object value) {
|
|
|
if (value != null && value instanceof String && ((String) value).trim().length() > 0) {
|
|
if (value != null && value instanceof String && ((String) value).trim().length() > 0) {
|
|
|
- return Integer.parseInt((String) value);
|
|
|
|
|
|
|
+ return Long.parseLong((String) value);
|
|
|
}
|
|
}
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|