Skip to content
Snippets Groups Projects
Commit a356f382 authored by Lukas Ladenberger's avatar Lukas Ladenberger
Browse files

disabled "replace default value" when setting attributes in observer

parent 2be5c6de
Branches
Tags
No related merge requests found
...@@ -117,7 +117,7 @@ public class ListenOperationByPredicate extends Observer { ...@@ -117,7 +117,7 @@ public class ListenOperationByPredicate extends Observer {
.getAttributeValue(attributeID); .getAttributeValue(attributeID);
if (!oldAttrVal.equals(attributeVal)) { if (!oldAttrVal.equals(attributeVal)) {
control.setAttributeValue(attributeID, control.setAttributeValue(attributeID,
attributeVal); attributeVal, true, false);
} }
} }
......
...@@ -81,7 +81,8 @@ public class SetAttribute extends Observer { ...@@ -81,7 +81,8 @@ public class SetAttribute extends Observer {
if (!obj.hasError()) { if (!obj.hasError()) {
Object oldAttrVal = control.getAttributeValue(attributeID); Object oldAttrVal = control.getAttributeValue(attributeID);
if (!oldAttrVal.equals(attributeVal)) { if (!oldAttrVal.equals(attributeVal)) {
control.setAttributeValue(attributeID, attributeVal); control.setAttributeValue(attributeID, attributeVal,
true, false);
} }
} }
......
...@@ -83,9 +83,11 @@ public class SwitchChildCoordinates extends Observer { ...@@ -83,9 +83,11 @@ public class SwitchChildCoordinates extends Observer {
// } else { // } else {
toggleControl.setAttributeValue( toggleControl.setAttributeValue(
AttributeConstants.ATTRIBUTE_X, parsedX); AttributeConstants.ATTRIBUTE_X, parsedX, true,
false);
toggleControl.setAttributeValue( toggleControl.setAttributeValue(
AttributeConstants.ATTRIBUTE_Y, parsedY); AttributeConstants.ATTRIBUTE_Y, parsedY, true,
false);
// } // }
} }
......
...@@ -84,9 +84,9 @@ public class SwitchCoordinates extends Observer { ...@@ -84,9 +84,9 @@ public class SwitchCoordinates extends Observer {
// } else { // } else {
control.setAttributeValue(AttributeConstants.ATTRIBUTE_X, control.setAttributeValue(AttributeConstants.ATTRIBUTE_X,
parsedX); parsedX, true, false);
control.setAttributeValue(AttributeConstants.ATTRIBUTE_Y, control.setAttributeValue(AttributeConstants.ATTRIBUTE_Y,
parsedY); parsedY, true, false);
// setCallBack(true); // setCallBack(true);
// checked = false; // checked = false;
// } // }
......
...@@ -63,7 +63,8 @@ public class SwitchImage extends Observer { ...@@ -63,7 +63,8 @@ public class SwitchImage extends Observer {
if (!control.getAttributeValue( if (!control.getAttributeValue(
AttributeConstants.ATTRIBUTE_IMAGE).equals(fImage)) { AttributeConstants.ATTRIBUTE_IMAGE).equals(fImage)) {
control.setAttributeValue( control.setAttributeValue(
AttributeConstants.ATTRIBUTE_IMAGE, fImage); AttributeConstants.ATTRIBUTE_IMAGE, fImage,
true, false);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment