]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/StandardVariableModifierAdapter.java
New implementation NearestOwnerFinder of CommonDBUtils.getNearestOwner
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / variable / StandardVariableModifierAdapter.java
1 package org.simantics.db.layer0.variable;
2
3 import org.simantics.db.AsyncReadGraph;
4 import org.simantics.db.RelationContext;
5 import org.simantics.db.Resource;
6 import org.simantics.db.adaption.Adapter;
7 import org.simantics.db.procedure.AsyncProcedure;
8
9 public class StandardVariableModifierAdapter implements Adapter<VariableModifier, RelationContext> {
10
11         @Override
12         public void adapt(AsyncReadGraph graph, Resource source, RelationContext context,
13                         AsyncProcedure<VariableModifier> procedure) {
14                 procedure.execute(graph, StandardVariableModifier.INSTANCE);
15         }
16
17 }