]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/DefaultMouseListener.java
Remove usage of deprecated SimanticsUI-methods
[simantics/platform.git] / bundles / org.simantics.browsing.ui.swt / src / org / simantics / browsing / ui / swt / DefaultMouseListener.java
index 58d9703ec24d533f1c7dad3fb16b1a18566945c8..6731b396aec9528ba6e4da52eb905ccd26af2398 100644 (file)
@@ -13,10 +13,10 @@ package org.simantics.browsing.ui.swt;
 
 import org.eclipse.jface.viewers.ISelection;
 import org.eclipse.swt.widgets.Control;
+import org.simantics.Simantics;
 import org.simantics.browsing.ui.GraphExplorer;
 import org.simantics.browsing.ui.common.node.IDoubleClickableNode;
 import org.simantics.db.common.procedure.adapter.ProcedureAdapter;
-import org.simantics.ui.SimanticsUI;
 import org.simantics.ui.workbench.action.ChooseActionRequest;
 import org.simantics.utils.ui.AdaptionUtils;
 import org.simantics.utils.ui.ErrorLogger;
@@ -55,7 +55,7 @@ public class DefaultMouseListener extends GraphExplorerMouseAdapter {
 
         // Try the doubleClick-extensions
         final String perspectiveId = WorkbenchUtils.getCurrentPerspectiveId();
-        SimanticsUI.getSession().asyncRequest(new ChooseActionRequest(tree.getShell(), ge, selection, perspectiveId), new ProcedureAdapter<Object>() {
+        Simantics.getSession().asyncRequest(new ChooseActionRequest(tree.getShell(), ge, selection, perspectiveId), new ProcedureAdapter<Object>() {
             @Override
             public void exception(Throwable t) {
                 ErrorLogger.defaultLogError(ChooseActionRequest.class.getName() + " failed, see exception for details.", t);