newAtomContainer.add(ring);
updateAtoms(ring, ring.atoms());
structureChanged();
if (undoable && getUndoRedoFactory() != null
&& getUndoRedoHandler() != null) {
IUndoRedoable undoredo = getUndoRedoFactory()
.getAddAtomsAndBondsEdit(getIChemModel(),
ring.getBuilder().newInstance(IAtomContainer.class,ring), null,
"Ring" + " " + ringSize, this);
getUndoRedoHandler().postEdit(undoredo);
}