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

propagates the previous change

refs 2553
parent f328e865
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,6 @@ import org.fortiss.tooling.kernel.extension.IEclipseResourcePostLoadProvider;
import org.fortiss.tooling.kernel.extension.data.ITopLevelElement;
import org.fortiss.tooling.kernel.model.constraints.ConstrainedWithChecksum;
import org.fortiss.tooling.kernel.model.constraints.ConstraintsPackage;
import org.fortiss.tooling.kernel.model.constraints.IAutoCheck;
import org.fortiss.tooling.kernel.model.constraints.IConstrained;
import org.fortiss.tooling.kernel.model.constraints.IConstraint;
import org.fortiss.tooling.kernel.model.constraints.IConstraintVerificationStatus;
......@@ -36,7 +35,7 @@ import org.fortiss.tooling.kernel.utils.LoggingUtils;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 3F14A57863E8C0447B2BE1CFD412BBDD
* @ConQAT.Rating YELLOW Hash: FC9CE128FC7A41382D00FDDCC4F2AE52
*/
public final class ConstraintVerificationUIService extends
EObjectAwareServiceBase<IConstraintVerifierUI<IConstraint>> implements
......@@ -133,7 +132,8 @@ public final class ConstraintVerificationUIService extends
* @param notification
* Checks if <code>notification</code> denotes a change entailing that
* <code>constraint</code> is outdated. If so updates the status to outdated or
* triggers an automatic check if the constraint is {@link IAutoCheck}.
* triggers an automatic check if the <code>autocheck</code> field of the
* constraint is <code>true</code>.
* @return <code>true</code> iff <code>notification</code> indeed entailed that
* <code>constraint</code> is outdated.
*/
......@@ -142,7 +142,7 @@ public final class ConstraintVerificationUIService extends
return false;
}
if(!IConstraintVerificationService.INSTANCE.isUpToDate(constraint)) {
if(constraint instanceof IAutoCheck) {
if(constraint.isAutoCheck()) {
ITopLevelElement modelContext =
IPersistencyService.INSTANCE.getTopLevelElementFor(constraint);
modelContext.runAsCommand(new Runnable() {
......
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