import org.simantics.objmap.graph.schema.IMappingSchema;\r
import org.simantics.objmap.graph.schema.MappingSchemas;\r
import org.simantics.objmap.graph.schema.SimpleSchema;\r
-import org.simantics.ui.SimanticsUI;\r
+import org.simantics.Simantics;\r
\r
public class SchemaBuilder {\r
\r
public static IMappingSchema<Resource,Object> getSchema() throws DatabaseException{\r
- return SimanticsUI.getSession().syncRequest(new Read<IMappingSchema<Resource,Object>>() {\r
+ return Simantics.getSession().syncRequest(new Read<IMappingSchema<Resource,Object>>() {\r
@Override\r
public IMappingSchema<Resource,Object> perform(ReadGraph g)\r
throws DatabaseException {\r