]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
New configurations have name "Configuration" as default
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 1 Mar 2010 17:18:04 +0000 (17:18 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 1 Mar 2010 17:18:04 +0000 (17:18 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@14496 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java

index 9cf036a70238c1e738130a3530bfedd64e5ba6c2..062cffb2f14f4b1ac713b917af592af8c43803a8 100644 (file)
@@ -9,7 +9,6 @@ import org.simantics.db.WriteGraph;
 import org.simantics.db.common.uri.URIToResource;\r
 import org.simantics.db.exception.DatabaseException;\r
 import org.simantics.db.service.LifecycleSupport;\r
-import org.simantics.layer0.utils.direct.GraphUtils;\r
 import org.simantics.project.ProjectElementType;\r
 import org.simantics.project.ProjectElements;\r
 import org.simantics.project.ProjectKeys;\r
@@ -62,7 +61,7 @@ public class SysdynProject extends AbstractProjectFeature {
                 Builtins b = g.getBuiltins();\r
                 SysdynResource sr = SysdynResource.getInstance(g);\r
                 Resource model = g.newResource();\r
-                g.claimValue(model, b.HasName, GraphUtils.findFreshName(g, "Configuration", library));\r
+                g.claimValue(model, b.HasName, "Configuration");\r
                 g.claim(model, b.InstanceOf, sr.Configuration);\r
                 g.claim(model, b.PartOf, library);\r
                 g.claimValue(model, sr.HasStartTime, 0.0);\r