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