]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling/scl/Simantics/Rename.scl
Merge "Re-export Simantics/DB/findFreshName from Rename" into release/1.43.1
[simantics/platform.git] / bundles / org.simantics.modeling / scl / Simantics / Rename.scl
index e7667ed877a59ab1bb841341a44f3c1039e110ab..a597368f10a8ec83ccd1f710e7d01966664442f1 100644 (file)
@@ -1,4 +1,5 @@
 import "Simantics/Entity" hiding (findFreshName)
+include "Simantics/DB" (findFreshName)
 
 importJava "org.simantics.modeling.Rename" where
     @JavaName renameNode
@@ -35,18 +36,6 @@ renameMBNode :: Resource -> String -> <WriteGraph> String
 renameMBNode entity newname = renameNode entity newname
 
 importJava "org.simantics.db.common.utils.NameUtils" where
-    @JavaName findFreshName
-    """
-        findFreshName name container
-        
-    Finds fresh and unused name with proposition `name` under the given `container`
-    and returns the freshName
-    
-    Example:
-    
-        freshName = findFreshName "Model" currentProject ()
-    """
-    findFreshName :: String -> Resource -> <ReadGraph> String
     
     @JavaName getSafeName
     """