@Override public void prepare() { cg.clear(); if (layout == null || containerPart == null || child == null) return; Container container = containerPart.getModel(); setTarget(container.getBigraph()); String name = container.getBigraph().getFirstUnusedName(child); if (child instanceof Node) { if (layout.width < 30) { layout.width = 30; } if (layout.height < 30) { layout.height = 30; } } cg.add(container.changeAddChild(child, name)); cg.add(LayoutUtilities.changeLayout(child, layout)); }