]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.team.ui/src/org/simantics/team/ui/handlers/DebugHandler.java
Remove usage of deprecated SimanticsUI-methods
[simantics/platform.git] / bundles / org.simantics.team.ui / src / org / simantics / team / ui / handlers / DebugHandler.java
index 5d8ec323f5659373b65d9247a91068118e50cdba..9fc1d4ee5162928ead00a18f4980ef9cbccaa54b 100644 (file)
@@ -13,6 +13,7 @@ package org.simantics.team.ui.handlers;
 
 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;
@@ -21,7 +22,6 @@ import org.simantics.db.common.request.WriteRequest;
 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 {
@@ -35,7 +35,7 @@ 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 {