mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 22:22:11 +02:00
Fixed range of supported number formats in PDA.
This commit is contained in:
parent
05578093af
commit
0c98984ff0
1 changed files with 3 additions and 3 deletions
|
@ -337,17 +337,17 @@ public class PDAExpressions extends AbstractDsfService implements ICachingServic
|
|||
protected void handleSuccess() {
|
||||
try {
|
||||
Integer.parseInt(getData().getFormattedValue());
|
||||
rm.setData(new String[] { NATURAL_FORMAT, STRING_FORMAT, HEX_FORMAT, DECIMAL_FORMAT, OCTAL_FORMAT, BINARY_FORMAT });
|
||||
rm.setData(new String[] { DECIMAL_FORMAT, HEX_FORMAT, DECIMAL_FORMAT, OCTAL_FORMAT, BINARY_FORMAT });
|
||||
rm.done();
|
||||
} catch (NumberFormatException e) {
|
||||
rm.setData(new String[] { NATURAL_FORMAT, STRING_FORMAT });
|
||||
rm.setData(new String[] { STRING_FORMAT });
|
||||
rm.done();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void handleErrorOrWarning() {
|
||||
rm.setData(new String[] { NATURAL_FORMAT, STRING_FORMAT });
|
||||
rm.setData(new String[] { STRING_FORMAT });
|
||||
rm.done();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue