From: Jani Mäkinen Date: Fri, 17 Jul 2020 09:26:48 +0000 (+0300) Subject: unify naming conventions for new model and model import X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F44%2F4344%2F2;p=simantics%2Fsysdyn.git unify naming conventions for new model and model import github #76 Change-Id: I711e27d188a1b7acb74162653c2d8b286adccb26 --- 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,