Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] RE: Extending number formats in DSF Variable views

Thanks Marc!

 


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Marc Khouzam
Sent: Tuesday, February 23, 2010 1:49 PM
To: 'CDT General developers list.'
Subject: [cdt-dev] RE: Extending number formats in DSF Variable views

 

I believe you are right

You may be interested in https://bugs.eclipse.org/bugs/show_bug.cgi?id=299441

 

 


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Mehregani, Navid
Sent: Tuesday, February 23, 2010 1:45 PM
To: CDT General developers list.
Subject: [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


Back to the top