| [cdt-dev] Extending number formats in DSF Variable views |
|
Hello, I was planning on extending the number formats available in
Variable, _expression_, and Register views to add a set of custom formats.
However, the number formats seem to be hardcoded and are not extensible. The number formats are specified under org.eclipse.cdt.dsf.debug.ui.viewmodel.numberformat.NumberFormatsContribution.
They’re declared in a constant linked list: static { FORMATS.add(IFormattedValues.NATURAL_FORMAT); FORMATS.add(IFormattedValues.HEX_FORMAT); FORMATS.add(IFormattedValues.DECIMAL_FORMAT); FORMATS.add(IFormattedValues.OCTAL_FORMAT); FORMATS.add(IFormattedValues.BINARY_FORMAT); FORMATS.add(IFormattedValues.STRING_FORMAT); } Please let me know your thoughts. If
my assumptions are correct, I can start working on a patch to enable extending
DSF’s number formats. Thanks, Navid |