From c7ea6e7f6961f430183a0686c874c0fca7105a1f Mon Sep 17 00:00:00 2001 From: lehtonen Date: Sun, 8 Aug 2010 14:25:20 +0000 Subject: [PATCH] WARNING: A previously agreed change to WriteGraph.deny(s,p,o) has been performed. If you have been using WriteGraph.deny(s,p,o), please check that your code uses the correct method for the task according to the following specs: WriteGraph.deny(s,p,o) previously only removed the statements (s,p,o) & (o,p',s), where p inverseOf p', which is what WriteGraph.deny(Statement) did and still does. Now, deny(s,p,o) has changed to denyStatement(s,p,o) and the current deny(s,p,o) works like deny(s,p) in that it will remove all statements between s and o where subrelationOf(?p, p) is true. git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@17016 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/objmap/rules/domain/MappingUtils.java | 4 ++-- .../simantics/sysdyn/ui/handlers/ToggleResultActivation.java | 2 +- .../src/org/simantics/sysdyn/manager/SysdynExperiment.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/org.simantics.objmap/src/org/simantics/objmap/rules/domain/MappingUtils.java b/org.simantics.objmap/src/org/simantics/objmap/rules/domain/MappingUtils.java index dbca6355..927d0121 100644 --- a/org.simantics.objmap/src/org/simantics/objmap/rules/domain/MappingUtils.java +++ b/org.simantics.objmap/src/org/simantics/objmap/rules/domain/MappingUtils.java @@ -51,7 +51,7 @@ public class MappingUtils { if(deleteExtraObjects) g.deny(currentObjects[i]); else - g.deny(subject, predicate, currentObjects[i]); + g.denyStatement(subject, predicate, currentObjects[i]); modified = true; ++i; if(i >= currentObjects.length) @@ -77,7 +77,7 @@ public class MappingUtils { if(deleteExtraObjects) g.deny(currentObjects[i]); else - g.deny(subject, predicate, currentObjects[i]); + g.denyStatement(subject, predicate, currentObjects[i]); modified = true; ++i; } diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/ToggleResultActivation.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/ToggleResultActivation.java index 6d9cf3fc..3a470de0 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/ToggleResultActivation.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/ToggleResultActivation.java @@ -39,7 +39,7 @@ public class ToggleResultActivation extends AbstractHandler { for(Resource r : resources) { if(graph.isInstanceOf(r, sr.Result)) { if (graph.hasStatement(r, b.IsActive)) { - graph.deny(r, b.IsActive, r); + graph.denyStatement(r, b.IsActive, r); } else { graph.claim(r, b.IsActive, r); } diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynExperiment.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynExperiment.java index 01afe036..46eb8339 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynExperiment.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynExperiment.java @@ -207,7 +207,7 @@ public class SysdynExperiment extends Experiment implements IDynamicExperiment { if(activate) graph.claim(experiment, b.IsActive, experiment); else - graph.deny(experiment, b.IsActive, experiment); + graph.denyStatement(experiment, b.IsActive, experiment); } }); -- 2.47.1