]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Allow module updaters to customise applyRules 26/3326/1
authorAntti Villberg <antti.villberg@semantum.fi>
Mon, 14 Oct 2019 05:29:46 +0000 (08:29 +0300)
committerAntti Villberg <antti.villberg@semantum.fi>
Mon, 14 Oct 2019 05:29:46 +0000 (08:29 +0300)
gitlab #395

Change-Id: I2c0579cf2e805e1fa88e9f4e1b8dfeb0c8845c1f

bundles/org.simantics.structural.synchronization/src/org/simantics/structural/synchronization/base/ModuleUpdaterBase.java

index f7a20768fb4ac8e9e0b77d829f984b23e3f6ae61..048691c6bc4209fef4f3f71e57e803b41770292d 100644 (file)
@@ -61,7 +61,7 @@ abstract public class ModuleUpdaterBase<T extends ComponentBase<T>> {
     
     abstract public CommandBuilder createUpdateCommandBuilder(String name);
     
-    private void applyRules(ModuleUpdateContext<T> context, boolean inCreate,
+    protected void applyRules(ModuleUpdateContext<T> context, boolean inCreate,
             Collection<SerializedVariable> properties, Collection<Connection> connections) {
         THashMap<String, Variant> propertyMap = new THashMap<String, Variant>(properties.size());
         Map<String, Collection<String>> connectionMap = connections.isEmpty()