--- /dev/null
+package org.simantics.selectionview;\r
+\r
+import org.simantics.db.ReadGraph;\r
+import org.simantics.db.Resource;\r
+import org.simantics.db.common.adaption.SimpleContextualAdapter;\r
+import org.simantics.db.exception.DatabaseException;\r
+import org.simantics.db.layer0.variable.ConstantPropertyVariable;\r
+import org.simantics.db.layer0.variable.ModelledVariablePropertyDescriptor;\r
+import org.simantics.db.layer0.variable.StandardGraphChildVariable;\r
+import org.simantics.db.layer0.variable.Variable;\r
+\r
+public class PropertyInfoVariableAdapter extends SimpleContextualAdapter<Variable, ModelledVariablePropertyDescriptor> {\r
+\r
+ @Override\r
+ public Variable adapt(ReadGraph graph, Resource source, ModelledVariablePropertyDescriptor context) throws DatabaseException {\r
+ return new ConstantPropertyVariable(context.getVariable(), "HasStandardPropertyInfo", new StandardGraphChildVariable(context.getVariable(), null, source), null);\r
+ }\r
+\r
+}\r