]> gerrit.simantics Code Review - simantics/platform.git/blob
7894284745f354952419256919f7f59ca85df7cb
[simantics/platform.git] /
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.query.IGraph;
7 import org.simantics.graph.store.GraphStore;
8 import org.simantics.ltk.Problem;
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 }