import org.simantics.objmap.graph.schema.IMappingSchema;\r
import org.simantics.objmap.structural.IStructuralObject;\r
import org.simantics.opencascade.SolidModelProvider;\r
-import org.simantics.ui.SimanticsUI;\r
+import org.simantics.Simantics;\r
\r
public class CSGSolidModelAdapter implements SolidModelProvider, IAdaptable, IStructuralObject {\r
\r
\r
@Override\r
public Collection<TopoDS_Shape> getModel() throws Exception {\r
- return SimanticsUI.getSession().syncRequest(new Read<Collection<TopoDS_Shape>>() {\r
+ return Simantics.getSession().syncRequest(new Read<Collection<TopoDS_Shape>>() {\r
@Override\r
public Collection<TopoDS_Shape> perform(ReadGraph graph)\r
throws DatabaseException {\r
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
import org.simantics.db.management.ISessionContext;\r
import org.simantics.project.IProject;\r
import org.simantics.project.ProjectKeys;\r
-import org.simantics.ui.SimanticsUI;\r
+import org.simantics.Simantics;\r
import org.simantics.utils.ui.ErrorLogger;\r
import org.simantics.utils.ui.ExceptionUtils;\r
import org.simantics.utils.ui.workbench.StringMemento;\r
public void init(IWorkbench workbench, IStructuredSelection selection) {\r
readPreferences();\r
\r
- ISessionContext ctx = SimanticsUI.getSessionContext();\r
+ ISessionContext ctx = Simantics.getSessionContext();\r
if (ctx == null)\r
return;\r
IProject project = ctx.getHint(ProjectKeys.KEY_PROJECT);\r