Skip to main content
summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAlena Laskavaia2008-12-03 18:20:34 +0000
committerAlena Laskavaia2008-12-03 18:20:34 +0000
commit2148626c7503a7a452f1aaa632f3d04d8907d200 (patch)
tree884ecacd0f8346de2a0ee77eca75ed1a7a79cf38 /build
parent7613f07e3de16d63e2398f8f217dda9efb85db1f (diff)
downloadorg.eclipse.cdt-2148626c7503a7a452f1aaa632f3d04d8907d200.tar.gz
org.eclipse.cdt-2148626c7503a7a452f1aaa632f3d04d8907d200.tar.xz
org.eclipse.cdt-2148626c7503a7a452f1aaa632f3d04d8907d200.zip
[255125] - applied patch for stack overflow problem
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/StringFieldEditorM.java20
1 files changed, 18 insertions, 2 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/StringFieldEditorM.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/StringFieldEditorM.java
index 89cd183f9a2..56e75854d08 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/StringFieldEditorM.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/StringFieldEditorM.java
@@ -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);
+ }
+ }
}
}

Back to the top