]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/NewTemplate.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.graph.compiler / src / org / simantics / graph / compiler / internal / templates / NewTemplate.java
diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/NewTemplate.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/NewTemplate.java
new file mode 100644 (file)
index 0000000..82c3d56
--- /dev/null
@@ -0,0 +1,19 @@
+package org.simantics.graph.compiler.internal.templates;\r
+\r
+import java.util.Collection;\r
+\r
+import org.simantics.graph.compiler.ExternalFileLoader;\r
+import org.simantics.graph.query.IGraph;\r
+import org.simantics.graph.store.GraphStore;\r
+import org.simantics.ltk.Problem;\r
+\r
+public enum NewTemplate implements ITemplate {\r
+       INSTANCE;\r
+       \r
+       @Override\r
+       public void apply(IGraph graph, GraphStore store,\r
+                       int[] parameters, ExternalFileLoader fileLoader, Collection<Problem> problems) {\r
+               store.identities.markNew(parameters[0]);\r
+       }\r
+\r
+}\r