import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
+import org.simantics.Simantics;
import org.simantics.db.Resource;
import org.simantics.db.Session;
import org.simantics.db.WriteGraph;
import org.simantics.db.exception.DatabaseException;
import org.simantics.db.service.XSupport;
import org.simantics.team.Activator;
-import org.simantics.ui.SimanticsUI;
import org.simantics.ui.workbench.handler.AbstractPreferenceHandler;
public class DebugHandler extends AbstractPreferenceHandler {
// if (sel instanceof IStructuredSelection)
// ss = (IStructuredSelection) sel;
try {
- Session s = SimanticsUI.getSession();
+ Session s = Simantics.getSession();
s.sync(new WriteRequest() {
@Override
public void perform(WriteGraph graph) throws DatabaseException {