]> gerrit.simantics Code Review - simantics/interop.git/commitdiff
Allow using InitializedRules to load custom data to generated model.
authorluukkainen <luukkainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 4 Jun 2012 11:03:54 +0000 (11:03 +0000)
committerMarko Luukkainen <marko.luukkainen@vtt.fi>
Thu, 2 Feb 2017 09:22:21 +0000 (11:22 +0200)
fixes #3488

git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@25099 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.interop.mapping/src/org/simantics/interop/mapping/Mapper.java

index 6f700d3bc7a18e05badca5635de17a524693711e..2a965b8fab64bd80a752ce8e6039c185d9ff8b1a 100644 (file)
@@ -118,6 +118,10 @@ public class Mapper {
                addRule(0, modRule);\r
        }\r
        \r
+       public void addRule(InitializedRule initRule) {\r
+               initializedRules.add(initRule);\r
+       }\r
+       \r
        public void addRule(int pass, ModificationRule modRule) {\r
                if (modRule == null) throw new NullPointerException();\r
                while (pass >= globalModificationRules.size()) {\r