]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.team.ui/src/org/simantics/team/ui/handlers/StagingOutHandler.java
Remove usage of deprecated SimanticsUI-methods
[simantics/platform.git] / bundles / org.simantics.team.ui / src / org / simantics / team / ui / handlers / StagingOutHandler.java
index 16acca6ed8639f419488c65e1db6173fe6d9e1d0..97a0a8c0818142199778e246bc72cc01f6a413bd 100644 (file)
@@ -14,13 +14,13 @@ package org.simantics.team.ui.handlers;
 import org.eclipse.core.commands.ExecutionEvent;
 import org.eclipse.core.commands.ExecutionException;
 import org.eclipse.ui.PlatformUI;
+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 StagingOutHandler extends AbstractPreferenceHandler {
@@ -35,7 +35,7 @@ public class StagingOutHandler extends AbstractPreferenceHandler {
 //        if (sel instanceof IStructuredSelection)
 //            ss = (IStructuredSelection) sel;
         try {
-            Session session = SimanticsUI.getSession();
+            Session session = Simantics.getSession();
             TeamSupport ts = session.getService(TeamSupport.class);
             final CommentDialog.Data data = new CommentDialog.Data("Staging Comment");
             if (!CommentDialog.openCommentDialog(data))