From: <sh...@us...> - 2007-02-01 16:49:44
|
Revision: 7831 http://svn.sourceforge.net/cdk/?rev=7831&view=rev Author: shk3 Date: 2007-02-01 08:34:17 -0800 (Thu, 01 Feb 2007) Log Message: ----------- the imlicit hs should work in undo-redo now Modified Paths: -------------- trunk/cdk/src/org/openscience/cdk/controller/AbstractController2D.java Modified: trunk/cdk/src/org/openscience/cdk/controller/AbstractController2D.java =================================================================== --- trunk/cdk/src/org/openscience/cdk/controller/AbstractController2D.java 2007-02-01 16:30:45 UTC (rev 7830) +++ trunk/cdk/src/org/openscience/cdk/controller/AbstractController2D.java 2007-02-01 16:34:17 UTC (rev 7831) @@ -944,7 +944,7 @@ this.updateAtoms(ChemModelManipulator.getRelevantAtomContainer(chemModel, newRing.getAtom(0)), sharedAtoms.atoms()); this.updateAtoms(ChemModelManipulator.getRelevantAtomContainer(chemModel, newRing.getAtom(0)), newRing.atoms()); undoRedoContainer.add(newRing); - UndoableEdit edit = new AddAtomsAndBondsEdit(chemModel, undoRedoContainer, "Added Ring"); + UndoableEdit edit = new AddAtomsAndBondsEdit(chemModel, undoRedoContainer, "Added Ring",c2dm); undoRedoHandler.postEdit(edit); r2dm.fireChange(); fireChange(); @@ -1271,7 +1271,7 @@ updateAtom(atomCon, atomInRange); updateAtom(atomCon, newAtom2); } - UndoableEdit edit = new AddAtomsAndBondsEdit(chemModel, undoRedoContainer, "Add Bond"); + UndoableEdit edit = new AddAtomsAndBondsEdit(chemModel, undoRedoContainer, "Add Bond",c2dm); undoRedoHandler.postEdit(edit); } r2dm.fireChange(); @@ -1490,7 +1490,7 @@ //FIXME undoredo IAtomContainer undoRedoContainer= chemModel.getBuilder().newAtomContainer(); undoRedoContainer.addAtom(newAtom1); - UndoableEdit edit = new AddAtomsAndBondsEdit(chemModel, undoRedoContainer, "Add Atom"); + UndoableEdit edit = new AddAtomsAndBondsEdit(chemModel, undoRedoContainer, "Add Atom",c2dm); undoRedoHandler.postEdit(edit); this.updateMoleculeCoordinates(); r2dm.fireChange(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |