package org.simantics.image.ui.function; import org.simantics.db.ReadGraph; import org.simantics.db.Resource; import org.simantics.db.exception.DatabaseException; import org.simantics.db.layer0.variable.Variable; import org.simantics.scl.reflection.annotations.SCLValue; public class All { @SCLValue(type = "ReadGraph -> Resource -> Variable -> a") public static Object data(ReadGraph graph, Resource converter, Variable context) throws DatabaseException { Variable parent = context.getParent(graph); Resource image = parent.getRepresents(graph); return graph.getValue(image); } }