mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
[255125] - applied patch for stack overflow problem
This commit is contained in:
parent
09f94f8e51
commit
3ef82b3a78
1 changed files with 18 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue