X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=org.simantics.g3d%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fscenegraph%2Fstructural%2FG3DComponentNode.java;h=692913656bde8c3e9c05ea547803dc6c9e2c7736;hb=refs%2Fchanges%2F60%2F3460%2F1;hp=0221bee2df49da6bf59e59eecc202242a343aa28;hpb=53d55c24c779745f188bdb18d32f71d20acb61b2;p=simantics%2F3d.git diff --git a/org.simantics.g3d/src/org/simantics/g3d/scenegraph/structural/G3DComponentNode.java b/org.simantics.g3d/src/org/simantics/g3d/scenegraph/structural/G3DComponentNode.java index 0221bee2..69291365 100644 --- a/org.simantics.g3d/src/org/simantics/g3d/scenegraph/structural/G3DComponentNode.java +++ b/org.simantics.g3d/src/org/simantics/g3d/scenegraph/structural/G3DComponentNode.java @@ -26,7 +26,7 @@ import org.simantics.objmap.graph.annotations.RelatedSetValue; import org.simantics.objmap.structural.IStructuralObject; import org.simantics.utils.datastructures.MapList; -public abstract class G3DComponentNode extends G3DNode implements IComponentNode{ +public abstract class G3DComponentNode, T2 extends IComponentNode> extends G3DNode implements IComponentNode{ private String name; @@ -161,9 +161,10 @@ public abstract class G3DComponentNode connections = new MapList(); + @SuppressWarnings("unchecked") protected void _addConnection(String id, T c) { connections.add(id, c); - c.addConnect(this); + c.addConnect((T2) this); firePropertyChanged(id); }