1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[205606] Edits should be colorized even if the value has not been changed; embedded users want to see that the memory will be written.

This commit is contained in:
Ted Williams 2007-10-05 19:41:49 +00:00
parent d9e5b657eb
commit 1db10b1da9

View file

@ -93,11 +93,14 @@ public class DataPane extends AbstractPane
bytesToSet[i] = new TraditionalMemoryByte(byteData[i]);
bytesToSet[i].setBigEndian(bytes[i].isBigEndian());
if(bytes[i].getValue() != byteData[i])
// for embedded, the user wants feedback that the change will be sent to the target,
// even if does not change the value. eventually, maybe we need another color to
// indicate change.
//if(bytes[i].getValue() != byteData[i])
{
bytesToSet[i].setEdited(true);
}
else
//else
{
if(bytes[i] instanceof TraditionalMemoryByte)
bytesToSet[i].setEdited(((TraditionalMemoryByte) bytes[i]).isEdited());