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() {
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());