]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/DiagramViewer.java
Remove usage of deprecated SimanticsUI-methods
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / diagramEditor / DiagramViewer.java
index 1762dea7f6108d34b0a265731387adc9325cb002..92d46e160e8f91347dee82da58c2698e5a7ba198 100644 (file)
@@ -346,7 +346,7 @@ public class DiagramViewer
 
     protected Set<String> getPropertyPageContexts() {
         try {
-            return BrowseContext.getBrowseContextClosure(SimanticsUI.getSession(), defaultPropertyBrowseContexts);
+            return BrowseContext.getBrowseContextClosure(Simantics.getSession(), defaultPropertyBrowseContexts);
         } catch (DatabaseException e) {
             ExceptionUtils.logAndShowError("Failed to load modeled browse contexts for property page, see exception for details.", e);
             return defaultPropertyBrowseContexts;
@@ -366,7 +366,7 @@ public class DiagramViewer
     }
 
     protected void initSession() {
-        sessionContextProvider = SimanticsUI.getSessionContextProvider();
+        sessionContextProvider = Simantics.getSessionContextProvider();
         sessionContext = sessionContextProvider.getSessionContext();
     }
 
@@ -960,7 +960,7 @@ public class DiagramViewer
         // Set initial part name according to the name given by IEditorInput
         host.doSetPartName(getEditorInput().getName());
 
-        Session session = SimanticsUI.peekSession();
+        Session session = Simantics.peekSession();
         if (session != null) {
             Supplier<Boolean> disposedCallback = () -> disposed;
             session.asyncRequest(