]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/NewTemplate.java
82c3d56426abc82612d82d9385c498102a22a401
[simantics/platform.git] / bundles / org.simantics.graph.compiler / src / org / simantics / graph / compiler / internal / templates / NewTemplate.java
1 package org.simantics.graph.compiler.internal.templates;\r
2 \r
3 import java.util.Collection;\r
4 \r
5 import org.simantics.graph.compiler.ExternalFileLoader;\r
6 import org.simantics.graph.query.IGraph;\r
7 import org.simantics.graph.store.GraphStore;\r
8 import org.simantics.ltk.Problem;\r
9 \r
10 public enum NewTemplate implements ITemplate {\r
11         INSTANCE;\r
12         \r
13         @Override\r
14         public void apply(IGraph graph, GraphStore store,\r
15                         int[] parameters, ExternalFileLoader fileLoader, Collection<Problem> problems) {\r
16                 store.identities.markNew(parameters[0]);\r
17         }\r
18 \r
19 }\r