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:
parent
d9e5b657eb
commit
1db10b1da9
1 changed files with 5 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue