import "Simantics/Entity" hiding (findFreshName)
+include "Simantics/DB" (findFreshName)
importJava "org.simantics.modeling.Rename" where
@JavaName renameNode
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
"""