Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
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