-package org.simantics.graph.compiler.internal.templates;\r
-\r
-import gnu.trove.map.hash.THashMap;\r
-\r
-import org.simantics.graph.query.Path;\r
-import org.simantics.graph.query.PathChild;\r
-import org.simantics.graph.query.Paths;\r
-\r
-\r
-public class BuiltinTemplates { \r
- public final THashMap<Path, ITemplate> TEMPLATES = \r
- new THashMap<Path, ITemplate>();\r
- \r
- public void add(Path path, ITemplate template) {\r
- TEMPLATES.put(path, template);\r
- }\r
- \r
- public BuiltinTemplates(Paths paths) {\r
- add(new PathChild("new", paths.Layer0), NewTemplate.INSTANCE);\r
- add(new PathChild("list", paths.Layer0), ListTemplate.INSTANCE);\r
- add(new PathChild("orderedSet", paths.Layer0), OrderedSetTemplate.INSTANCE);\r
- add(new PathChild("loadBytes", paths.Layer0), LoadBytesTemplate.INSTANCE);\r
- add(new PathChild("loadString", paths.Layer0), LoadStringTemplate.INSTANCE);\r
- add(new PathChild("loadDataValue", paths.Layer0), LoadDataValueTemplate.INSTANCE);\r
- }\r
-}\r
+package org.simantics.graph.compiler.internal.templates;
+
+import gnu.trove.map.hash.THashMap;
+
+import org.simantics.graph.query.Path;
+import org.simantics.graph.query.PathChild;
+import org.simantics.graph.query.Paths;
+
+
+public class BuiltinTemplates {
+ public final THashMap<Path, ITemplate> TEMPLATES =
+ new THashMap<Path, ITemplate>();
+
+ public void add(Path path, ITemplate template) {
+ TEMPLATES.put(path, template);
+ }
+
+ public BuiltinTemplates(Paths paths) {
+ add(new PathChild("new", paths.Layer0), NewTemplate.INSTANCE);
+ add(new PathChild("list", paths.Layer0), ListTemplate.INSTANCE);
+ add(new PathChild("orderedSet", paths.Layer0), OrderedSetTemplate.INSTANCE);
+ add(new PathChild("loadBytes", paths.Layer0), LoadBytesTemplate.INSTANCE);
+ add(new PathChild("loadString", paths.Layer0), LoadStringTemplate.INSTANCE);
+ add(new PathChild("loadDataValue", paths.Layer0), LoadDataValueTemplate.INSTANCE);
+ }
+}