X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=org.simantics.proconf.processeditor%2Fsrc%2Forg%2Fsimantics%2Fprocesseditor%2Fdialogs%2FConfigureAnimationDialog.java;h=421bdd55405a508eef891862f0a293e9c8c9de36;hb=c58f0db363a3f2881577f84fb905e07775f65002;hp=4ef225bbfb396e60e38102f81b01bed4885165c5;hpb=f20a7d62827580fd7b4c1c1dd3cc5feb20c0667b;p=simantics%2F3d.git diff --git a/org.simantics.proconf.processeditor/src/org/simantics/processeditor/dialogs/ConfigureAnimationDialog.java b/org.simantics.proconf.processeditor/src/org/simantics/processeditor/dialogs/ConfigureAnimationDialog.java index 4ef225bb..421bdd55 100644 --- a/org.simantics.proconf.processeditor/src/org/simantics/processeditor/dialogs/ConfigureAnimationDialog.java +++ b/org.simantics.proconf.processeditor/src/org/simantics/processeditor/dialogs/ConfigureAnimationDialog.java @@ -189,7 +189,7 @@ public class ConfigureAnimationDialog extends Dialog { IEntity t = EntityFactory.create(g,type); if (t.getRelatedObjects(ProcessResource.plant3Dresource.HasGraphics).size() > 0) { String key = t.getName(); - if (key.equals("")) key = "ERROR (" + type.getResourceId() + ")"; + if (key.equals("")) key = "ERROR (" + type.getResourceId(g.getSession()) + ")"; sorter.put(key, type); } } @@ -366,7 +366,7 @@ public class ConfigureAnimationDialog extends Dialog { Collection animations = model.getAnimation(); for (Animation a : animations) { String key = a.getName(); - if (key.equals("")) key = "ERROR (" + a.getResource().getResourceId() + ")"; + if (key.equals("")) key = "ERROR (" + a.getResource().getResourceId(model.getGraph().getSession()) + ")"; sorter.put(key, a); }