From da8fa473c2247427cf59f7007a235f556799caad Mon Sep 17 00:00:00 2001 From: luukkainen Date: Mon, 4 Jun 2012 11:03:54 +0000 Subject: [PATCH] Allow using InitializedRules to load custom data to generated model. fixes #3488 git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@25099 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/interop/mapping/Mapper.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/org.simantics.interop.mapping/src/org/simantics/interop/mapping/Mapper.java b/org.simantics.interop.mapping/src/org/simantics/interop/mapping/Mapper.java index 6f700d3..2a965b8 100644 --- a/org.simantics.interop.mapping/src/org/simantics/interop/mapping/Mapper.java +++ b/org.simantics.interop.mapping/src/org/simantics/interop/mapping/Mapper.java @@ -118,6 +118,10 @@ public class Mapper { addRule(0, modRule); } + public void addRule(InitializedRule initRule) { + initializedRules.add(initRule); + } + public void addRule(int pass, ModificationRule modRule) { if (modRule == null) throw new NullPointerException(); while (pass >= globalModificationRules.size()) { -- 2.47.1