/* * (non-Javadoc) * @see com.metamatrix.modeler.diagram.ui.model.DiagramModelNode#addChildren(java.util.List) */ @Override public void addChildren(List newChildren) { if (newChildren != null && !newChildren.isEmpty()) { Object nextChild; Iterator iter = newChildren.iterator(); while (iter.hasNext()) { nextChild = iter.next(); ((DiagramModelNode) nextChild).setParent(this); } super.addChildren(newChildren); } }
/* * (non-Javadoc) * @see com.metamatrix.modeler.diagram.ui.model.DiagramModelNode#addChild(com.metamatrix.modeler.diagram.ui.model.DiagramModelNode) */ @Override public void addChild(DiagramModelNode child) { child.setParent(this); super.addChild(child); }