]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.team.ui/src/org/simantics/team/ui/handlers/SynchroniseAllHandler.java
Remove usage of deprecated SimanticsUI-methods
[simantics/platform.git] / bundles / org.simantics.team.ui / src / org / simantics / team / ui / handlers / SynchroniseAllHandler.java
index 6463ccbb2f58808c217643c342f6e7e3ecc2ffe8..d8be98c06980c4769b5e4398e440c9dbe095af4d 100644 (file)
@@ -22,6 +22,7 @@ import org.eclipse.core.runtime.NullProgressMonitor;
 import org.eclipse.core.runtime.Platform;
 import org.eclipse.jface.dialogs.MessageDialog;
 import org.eclipse.ui.PlatformUI;
+import org.simantics.Simantics;
 import org.simantics.db.Resource;
 import org.simantics.db.ServerReference;
 import org.simantics.db.Session;
@@ -34,7 +35,6 @@ import org.simantics.team.internal.StagingLauncher;
 import org.simantics.team.internal.StagingLauncher.Config;
 import org.simantics.team.internal.StagingLauncher.StagingResult;
 import org.simantics.team.ui.StageInitWizard;
-import org.simantics.ui.SimanticsUI;
 import org.simantics.ui.workbench.handler.AbstractPreferenceHandler;
 import org.simantics.utils.FileUtils;
 import org.simantics.utils.ui.ErrorLogger;
@@ -53,7 +53,7 @@ public class SynchroniseAllHandler extends AbstractPreferenceHandler {
 //        if (sel instanceof IStructuredSelection)
 //            ss = (IStructuredSelection) sel;
         try {
-            Session session = SimanticsUI.getSession();
+            Session session = Simantics.getSession();
             File wsFolder = new File(Platform.getInstanceLocation().getURL().getFile());
             File stFolder = new File(wsFolder, "staging");
             File teamFolder = pullAll(session, Utils.getTeamFolder(), stFolder);