1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Bug 397636 : Editing the SRecord Exporter length field fill it in with the

end address.
This commit is contained in:
Randy Rohrbach 2013-01-07 17:48:41 -05:00
parent 1131bb801d
commit fb5f1bd39d

View file

@ -239,7 +239,6 @@ public class SRecordExporter implements IMemoryExporter
{
fStartText.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_RED));
validate();
//fParentDialog.setValid(false);
}
}
@ -267,7 +266,6 @@ public class SRecordExporter implements IMemoryExporter
{
fEndText.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_RED));
validate();
//fParentDialog.setValid(false);
}
}
@ -284,9 +282,8 @@ public class SRecordExporter implements IMemoryExporter
String endString = "0x" + getStartAddress().add(length).toString(16); //$NON-NLS-1$
if(!fEndText.getText().equals(endString)) {
if ( ! length.equals( BigInteger.ZERO ) ) {
fLengthText.setText(endString);
fEndText.setText(endString);
}
fEndText.setText(endString);
}
validate();
}
@ -294,7 +291,6 @@ public class SRecordExporter implements IMemoryExporter
{
fLengthText.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_RED));
validate();
//fParentDialog.setValid(false);
}
}