import org.eclipse.ui.commands.IElementUpdater;
import org.eclipse.ui.handlers.HandlerUtil;
import org.eclipse.ui.menus.UIElement;
+import org.simantics.Simantics;
import org.simantics.db.ReadGraph;
import org.simantics.db.Resource;
import org.simantics.db.Session;
if (resource == null)
return null;
- SimanticsUI.getSession().asyncRequest(new WriteRequest() {
+ Simantics.getSession().asyncRequest(new WriteRequest() {
@Override
public void perform(WriteGraph g) throws DatabaseException {
DiagramResource dr = DiagramResource.getInstance(g);
}
// Get the current value for the State object
- Session s = SimanticsUI.peekSession();
+ Session s = Simantics.peekSession();
if (s != null) {
Boolean value = Boolean.TRUE;
IWorkbenchSite site = (IWorkbenchSite) parameters.get("org.eclipse.ui.part.IWorkbenchPartSite");