Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.debug.core.cdi
Interface ICDIFormattable


public interface ICDIFormattable

The CDI client's implementation of ICDIValue should implement this interface if it wants to dictate the variable/register's natural format. If it doesn't, CDT will provide a default behavior (e.g., all integral, non-pointer ICDIValue variants will display as decimal). CDT will exercise this interface only for ICDIValue's whose natural format isn't obvious or implied. For example, it will not be exercised for ICDIDoubleValue, ICDICharValue or ICDIBoolValue, to name a few.


Method Summary
 int getNaturalFormat()
          Called when there is no obvious or implied natural format for the ICDIValue.
 

Method Detail

getNaturalFormat

public int getNaturalFormat()
                     throws CDIException
Called when there is no obvious or implied natural format for the ICDIValue.

Returns:
one of the ICDIFormat constants, excluding 'NATURAL' and 'OCTAL'. Octal is not supported simply because the general support for it is lacking in CDT (apparently no one is asking for it).
Throws:
CDIException

Eclipse CDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2004. All Rights Reserved.