From ce1aaf5200ac5ae0709c30b40a78be0f85c4a775 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jani=20M=C3=A4kinen?= Date: Fri, 17 Jul 2020 12:26:48 +0300 Subject: [PATCH] unify naming conventions for new model and model import github #76 Change-Id: I711e27d188a1b7acb74162653c2d8b286adccb26 --- .../src/org/simantics/sysdyn/utils/ModelUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.simantics.sysdyn/src/org/simantics/sysdyn/utils/ModelUtils.java b/bundles/org.simantics.sysdyn/src/org/simantics/sysdyn/utils/ModelUtils.java index 96c37507..e9379fa4 100644 --- a/bundles/org.simantics.sysdyn/src/org/simantics/sysdyn/utils/ModelUtils.java +++ b/bundles/org.simantics.sysdyn/src/org/simantics/sysdyn/utils/ModelUtils.java @@ -68,7 +68,7 @@ public class ModelUtils { ModelingUtils mu = new ModelingUtils(g); DocumentResource DOC = DocumentResource.getInstance(g); - String modelName = NameUtils.findFreshName(g, "Model", library, l0.ConsistsOf, "%s%d"); + String modelName = NameUtils.findFreshEscapedName(g, "Model", library, l0.ConsistsOf); Resource project = Simantics.getProject().get(); Resource model = GraphUtils.create2(g, -- 2.47.1