]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.team.ui/src/org/simantics/team/ui/handlers/DumpToSelectedRevisionHandler.java
Remove usage of deprecated SimanticsUI-methods
[simantics/platform.git] / bundles / org.simantics.team.ui / src / org / simantics / team / ui / handlers / DumpToSelectedRevisionHandler.java
index 2b8c677bec1aba9dd823452605d6471a9eee168e..3b1b8e7f33808d741b7134726d916485a9d48b84 100644 (file)
@@ -20,13 +20,13 @@ import org.eclipse.core.runtime.Platform;
 import org.eclipse.jface.viewers.ISelection;
 import org.eclipse.jface.viewers.IStructuredSelection;
 import org.eclipse.ui.handlers.HandlerUtil;
+import org.simantics.Simantics;
 import org.simantics.db.ChangeSetIdentifier;
 import org.simantics.db.Session;
 import org.simantics.db.common.utils.Logger;
 import org.simantics.db.service.ManagementSupport;
 import org.simantics.db.service.TeamSupport;
 import org.simantics.team.ui.Command;
-import org.simantics.ui.SimanticsUI;
 
 public class DumpToSelectedRevisionHandler extends AbstractHandler {
     public DumpToSelectedRevisionHandler() {
@@ -45,7 +45,7 @@ public class DumpToSelectedRevisionHandler extends AbstractHandler {
                 if (null == csi)
                     return null;
                 long csid = csi.getId();
-                Session session = SimanticsUI.getSession();
+                Session session = Simantics.getSession();
                 ManagementSupport ms = session.getService(ManagementSupport.class);
                 ms.dumpRevision(csid);
                 File wsFolder = new File(Platform.getInstanceLocation().getURL().getFile());