]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.proconf.processeditor/src/org/simantics/processeditor/dialogs/ConfigureAnimationDialog.java
git-svn-id: https://www.simantics.org/svn/simantics/3d/branches/dev@9355 ac1ea38d...
[simantics/3d.git] / org.simantics.proconf.processeditor / src / org / simantics / processeditor / dialogs / ConfigureAnimationDialog.java
index 421bdd55405a508eef891862f0a293e9c8c9de36..4ef225bbfb396e60e38102f81b01bed4885165c5 100644 (file)
@@ -189,7 +189,7 @@ public class ConfigureAnimationDialog extends Dialog {
                                IEntity t = EntityFactory.create(g,type);\r
                                if (t.getRelatedObjects(ProcessResource.plant3Dresource.HasGraphics).size() > 0) {\r
                                        String key = t.getName();\r
-                               if (key.equals("")) key = "ERROR (" + type.getResourceId(g.getSession()) + ")";\r
+                               if (key.equals("")) key = "ERROR (" + type.getResourceId() + ")";\r
                                sorter.put(key, type);\r
                                }\r
                        }\r
@@ -366,7 +366,7 @@ public class ConfigureAnimationDialog extends Dialog {
                Collection<Animation> animations = model.getAnimation();\r
                for (Animation a : animations) {\r
                        String key = a.getName();\r
-               if (key.equals("")) key = "ERROR (" + a.getResource().getResourceId(model.getGraph().getSession()) + ")";\r
+               if (key.equals("")) key = "ERROR (" + a.getResource().getResourceId() + ")";\r
                sorter.put(key, a);\r
                }\r
                \r