From 7650a60539e7407576413a760c6f3cfa8cdf841a Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Fri, 22 Aug 2014 09:17:46 +0000 Subject: [PATCH] refs #5196 - Preventing the user to move the function to Built-in functions library - Changing SimanticsUI.getSession() calls to Simantics.getSession() git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30121 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../simantics/sysdyn/ui/browser/nodes/FunctionsFolder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/nodes/FunctionsFolder.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/nodes/FunctionsFolder.java index 5e4f8748..2bdb2e44 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/nodes/FunctionsFolder.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/browser/nodes/FunctionsFolder.java @@ -11,6 +11,7 @@ *******************************************************************************/ package org.simantics.sysdyn.ui.browser.nodes; +import org.simantics.Simantics; import org.simantics.browsing.ui.common.node.AbstractNode; import org.simantics.browsing.ui.common.node.IDropTargetNode; import org.simantics.db.Resource; @@ -19,7 +20,6 @@ import org.simantics.db.common.request.WriteRequest; import org.simantics.db.exception.DatabaseException; import org.simantics.layer0.Layer0; import org.simantics.sysdyn.SysdynResource; -import org.simantics.ui.SimanticsUI; import org.simantics.ui.utils.ResourceAdaptionUtils; public class FunctionsFolder extends AbstractNode implements IDropTargetNode{ @@ -41,7 +41,7 @@ public class FunctionsFolder extends AbstractNode implements IDropTarg final Resource[] resources = ResourceAdaptionUtils.toResources(data); final Resource library = this.data; if(resources.length > 0) { - SimanticsUI.getSession().asyncRequest(new WriteRequest() { + Simantics.getSession().asyncRequest(new WriteRequest() { @Override public void perform(WriteGraph graph) throws DatabaseException { -- 2.47.1