import org.simantics.proconf.g3d.base.ThreeDimensionalEditorBase;\r
import org.simantics.proconf.g3d.stubs.G3DModel;\r
import org.simantics.proconf.g3d.stubs.G3DNode;\r
-import org.simantics.utils.ErrorLogger;\r
+import org.simantics.utils.ui.ErrorLogger;\r
\r
public class ModelNode extends AbstractGraphicsNode implements Animatable, IGeometryNode{\r
protected List<ShapeNode> shapes = new ArrayList<ShapeNode>();\r
G3DModel model = getG3DModel(graph);\r
Collection<G3DNode> nodes = model.getChild();\r
if (nodes.size() == 0) {\r
- ErrorLogger.defaultLogError("ModelNode " + model.getResource() + " has no shapes", null);\r
+ ErrorLogger.defaultLogError("ModelNode " + model.getResource().getResourceId() + " has no shapes", null);\r
return;\r
}\r
for (G3DNode node: nodes) {\r
return false; \r
}\r
G3DModel model = getG3DModel(graph);\r
- Collection<org.simantics.g2d.stubs.anim.Animation> animations = model.getAnimation();\r
+ Collection<org.simantics.animation.stubs.Animation> animations = model.getAnimation();\r
int num = animations.size();\r
if (num == 0) {\r
ErrorLogger.getDefault().logWarning("Cannot set animation for " + shapeResource + " since it has no animations", null);\r
return false; \r
}\r
int random = (int)Math.round(Math.random() * (num-1));\r
- Iterator<org.simantics.g2d.stubs.anim.Animation> i = animations.iterator();\r
+ Iterator<org.simantics.animation.stubs.Animation> i = animations.iterator();\r
while(random > 0) {\r
i.next();\r
random--;\r