]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.team.ui/src/org/simantics/team/ui/handlers/CommitAllHandler.java
Remove usage of deprecated SimanticsUI-methods
[simantics/platform.git] / bundles / org.simantics.team.ui / src / org / simantics / team / ui / handlers / CommitAllHandler.java
index e047a3e565101de68797d9a3135459ac5d042bd9..83d136a8b2ac14e2a13f95be5a593f4dfac7dfdf 100644 (file)
@@ -15,13 +15,13 @@ import java.io.File;
 
 import org.eclipse.core.commands.ExecutionEvent;
 import org.eclipse.core.commands.ExecutionException;
+import org.simantics.Simantics;
 import org.simantics.db.Session;
 import org.simantics.db.exception.DatabaseException;
 import org.simantics.db.service.TeamSupport;
 import org.simantics.team.Activator;
 import org.simantics.team.Utils;
 import org.simantics.team.ui.CommentDialog;
-import org.simantics.ui.SimanticsUI;
 import org.simantics.ui.workbench.handler.AbstractPreferenceHandler;
 
 public class CommitAllHandler extends AbstractPreferenceHandler {
@@ -46,7 +46,7 @@ public class CommitAllHandler extends AbstractPreferenceHandler {
     }
     static CommentDialog.Data commitAll(File teamFolder, boolean init) 
     throws DatabaseException {
-        Session session = SimanticsUI.getSession();
+        Session session = Simantics.getSession();
         TeamSupport ts = session.getService(TeamSupport.class);
         final CommentDialog.Data data = new CommentDialog.Data("Commit Comment");
         if (CommentDialog.openCommentDialog(data))