From f7165e01aa96024ee2ad0bf4f216a9abd91ae9bd Mon Sep 17 00:00:00 2001 From: Vincent Aravantinos <aravantinos@fortiss.org> Date: Mon, 17 Mar 2014 14:57:04 +0000 Subject: [PATCH] Fixed the feature. refs 1960 --- .../internal/properties/NamedCommentedPropertySection.java | 7 +++---- .../fortiss/tooling/kernel/ui/util/DataBindingUtils.java | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/properties/NamedCommentedPropertySection.java b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/properties/NamedCommentedPropertySection.java index efbba5b43..3ea25d71e 100644 --- a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/properties/NamedCommentedPropertySection.java +++ b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/properties/NamedCommentedPropertySection.java @@ -37,7 +37,7 @@ import org.fortiss.tooling.kernel.ui.util.ObservableUtils; * @author ratiu * @author $Author$ * @version $Rev$ - * @ConQAT.Rating GREEN Hash: C45B847ABDB8F72B78DCE82E549DBD1E + * @ConQAT.Rating YELLOW Hash: 4E16EDE7958E8E5A1C74359119B5D152 */ public class NamedCommentedPropertySection extends PropertySectionBase { @@ -88,12 +88,11 @@ public class NamedCommentedPropertySection extends PropertySectionBase { IObservableValue modelObservable = ObservableUtils.observeValue(namedCommented, FortissToolingKernelPackage.Literals.INAMED_ELEMENT__NAME); - dbc.bindValue(SWTObservables.observeText(nameText, SWT.FocusOut), modelObservable, null, - null); + dbc.bindValue(SWTObservables.observeText(nameText, SWT.Modify), modelObservable, null, null); modelObservable = ObservableUtils.observeValue(namedCommented, FortissToolingKernelPackage.Literals.INAMED_COMMENTED_ELEMENT__COMMENT); - dbc.bindValue(SWTObservables.observeText(commentText, SWT.FocusOut), modelObservable, null, + dbc.bindValue(SWTObservables.observeText(commentText, SWT.Modify), modelObservable, null, null); } } diff --git a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/util/DataBindingUtils.java b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/util/DataBindingUtils.java index 7f1671300..83cbe8365 100644 --- a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/util/DataBindingUtils.java +++ b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/util/DataBindingUtils.java @@ -37,7 +37,7 @@ import org.eclipse.swt.widgets.Control; * @author hoelzl * @author $Author$ * @version $Rev$ - * @ConQAT.Rating GREEN Hash: 92A67E1D26D4675C3B549AE47D88778D + * @ConQAT.Rating YELLOW Hash: DA9F50BF3938F15C160CA4D0F792D6D0 */ public final class DataBindingUtils { @@ -134,7 +134,7 @@ public final class DataBindingUtils { // add the "normal" binding to actually update the model bindings[0] = - dbc.bindValue(SWTObservables.observeText(control, SWT.FocusOut), modelValue, + dbc.bindValue(SWTObservables.observeText(control, SWT.Modify), modelValue, textToModelStrategyWithUpdate, modelToTextStrategy); // here it is important to only use POLICY_CONVERT, to not write through @@ -202,7 +202,7 @@ public final class DataBindingUtils { // add the "normal" binding to actually update the model bindings[0] = - dbc.bindValue(SWTObservables.observeText(control, SWT.FocusOut), cellValue, + dbc.bindValue(SWTObservables.observeText(control, SWT.Modify), cellValue, cellToModelStrategyWithUpdate, modelToCellStrategy); // here it is important to only use POLICY_CONVERT, to not write through -- GitLab