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

automatically adds constraint to the constraints when setting a constrained

refs 2553
parent ca715901
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ import org.fortiss.tooling.kernel.utils.LoggingUtils;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: B05A05B14D8FC6C1B85465F70CA4748C
* @ConQAT.Rating YELLOW Hash: AC424F71EB9E676C3F1A949B9566D2D2
*/
public final class ConstraintVerificationService extends
EObjectAwareServiceBase<IConstraintVerifier<IConstraint>> implements
......@@ -224,6 +224,9 @@ public final class ConstraintVerificationService extends
cwcs.add(i, ConstraintsFactory.eINSTANCE.createConstrainedWithChecksum());
}
}
if(!constrained.getConstraints().contains(constraint)) {
constrained.getConstraints().add(constraint);
}
ConstrainedWithChecksum cwc = cwcs.get(index);
cwc.setConstrained(constrained);
cwc.setChecksum(computeCheckSum(constrained, constraint));
......
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