1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00

[255125] - applied patch for stack overflow problem

This commit is contained in:
Alena Laskavaia 2008-12-03 18:21:14 +00:00
parent 09f94f8e51
commit 3ef82b3a78

View file

@ -29,8 +29,24 @@ public class StringFieldEditorM extends StringFieldEditor {
public Text getTextControl() {
return super.getTextControl();
}
public void valueChanged() {
super.valueChanged();
setPresentsDefaultValue(false);
boolean oldState = super.isValid();
super.refreshValidState();
if (super.isValid() != oldState) {
fireStateChanged(IS_VALID, oldState, super.isValid());
}
String newValue = this.getTextControl().getText();
if (!newValue.equals(oldValue)) {
String oldValueTmp =oldValue;
oldValue = newValue;
try {
fireValueChanged(VALUE, oldValueTmp, newValue);
} catch (Exception e) {
oldValue = oldValueTmp;
ManagedBuilderUIPlugin.log(e);
}
}
}
}