]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.team.ui/src/org/simantics/team/ui/handlers/StageInitHandler.java
Remove usage of deprecated SimanticsUI-methods
[simantics/platform.git] / bundles / org.simantics.team.ui / src / org / simantics / team / ui / handlers / StageInitHandler.java
index 09e8d6d2ddba473cf4b2a4ccd71b63628055e2f8..6afae9e3b141d8c4147b2c11590539950493fa96 100644 (file)
@@ -16,11 +16,11 @@ import java.io.File;
 import org.eclipse.core.commands.ExecutionEvent;
 import org.eclipse.core.commands.ExecutionException;
 import org.eclipse.core.runtime.Platform;
 import org.eclipse.core.commands.ExecutionEvent;
 import org.eclipse.core.commands.ExecutionException;
 import org.eclipse.core.runtime.Platform;
+import org.simantics.Simantics;
 import org.simantics.db.Session;
 import org.simantics.team.Activator;
 import org.simantics.team.ui.CommentDialog;
 import org.simantics.team.ui.StageInitWizard;
 import org.simantics.db.Session;
 import org.simantics.team.Activator;
 import org.simantics.team.ui.CommentDialog;
 import org.simantics.team.ui.StageInitWizard;
-import org.simantics.ui.SimanticsUI;
 import org.simantics.ui.workbench.handler.AbstractPreferenceHandler;
 import org.simantics.utils.ui.dialogs.ShowError;
 
 import org.simantics.ui.workbench.handler.AbstractPreferenceHandler;
 import org.simantics.utils.ui.dialogs.ShowError;
 
@@ -37,7 +37,7 @@ public class StageInitHandler extends AbstractPreferenceHandler {
     public Object execute(ExecutionEvent event) throws ExecutionException {
         System.out.println("DEBUG: " + this.getClass().getName());
         try {
     public Object execute(ExecutionEvent event) throws ExecutionException {
         System.out.println("DEBUG: " + this.getClass().getName());
         try {
-            Session session = SimanticsUI.getSession();
+            Session session = Simantics.getSession();
             File wsFolder = new File(Platform.getInstanceLocation().getURL().getFile());
             File stFolder = new File(wsFolder, "staging");
             final StageInitWizard.Data data = new StageInitWizard.Data(stFolder, null);
             File wsFolder = new File(Platform.getInstanceLocation().getURL().getFile());
             File stFolder = new File(wsFolder, "staging");
             final StageInitWizard.Data data = new StageInitWizard.Data(stFolder, null);