Skip to content
Snippets Groups Projects
Commit f7165e01 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

Fixed the feature.

refs 1960
parent 150e5db0
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment