package org.simantics.scenegraph.loader; import org.simantics.db.ReadGraph; import org.simantics.db.Resource; import org.simantics.db.common.adaption.SimpleContextualAdapter; import org.simantics.db.exception.DatabaseException; import org.simantics.db.layer0.variable.ModelledVariablePropertyDescriptor; import org.simantics.db.layer0.variable.StandardGraphPropertyVariable; import org.simantics.db.layer0.variable.Variable; public class LiftedPropertyVariableAdapter extends SimpleContextualAdapter { @Override public Variable adapt(ReadGraph graph, Resource source, ModelledVariablePropertyDescriptor context) throws DatabaseException { return new StandardGraphPropertyVariable(graph, context.getVariable(), context.getProperty()); } }