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 efbba5b439803d1ed2bfba3a3e73b7de40f94b4b..3ea25d71ea3c51f01b2c08d7f2ec870ad68658c8 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 7f167130018f5e10fb9af9d34ff112670eb547da..83cbe83654660b3aae978b6db4fc808d4923a1ca 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