Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-debug-dev] Error message for adding Memory Monitor

Title: Error message for adding Memory Monitor

Hi,

When user adds a memory monitor for, say, a float var like this:
        float var_float;
He will get an error dialog saying:
         ------------
        Add memory monitor failed.
        Invalid _expression_ type: 'var_float'
         -------------
Is it better we change it to
       
        Invalided _expression_ type: 'float'.

Namely put the type name instead of var name at the end of the message ?

The simple code change, if agreed, can be done in
    org.eclipse.cdt.debug.internal.core.CMemoryBlockRetrievalExtension.getExtendedMemoryBlock()
By changing
MessageFormat.format( InternalDebugCoreMessages.getString( "CMemoryBlockRetrievalExtension.1" ), new String[] { _expression_ } );

To
MessageFormat.format( InternalDebugCoreMessages.getString( "CMemoryBlockRetrievalExtension.1" ), new String[] {type.getName()});

-- Ling

Nokia IDE Solutions
Austin, Texas

Phone: +1 512-203-4435
Fax:     +1 512-479-1699
- - - - - - - - - - - - - - - - -
Carbide.c++ Express is available now!
See http://www.forum.nokia.com/carbide for details.




Back to the top