Hi Edgar, Matthias >> Can anybody explain me, how to implement undo? Or point me to the >> documentation? > have a look at geometry converter or cts extension. i wrote a > undoablegeometryoperation class. this should give you an idea. essentially it > is keeping the old objects in a list and provides redo/undo methods to > recreate the states. I had a look at Edgar's code and saw he implemented his own undo mechanism. Do you know there is an Undo framework in OpenJUMP with classes like com.vividsolutions.jump.workbench.ui.EditTransaction or com.vividsolutions.jump.workbench.model.UndoableEditReceiver
I did not test Edgar's undo. It seems smart but I suppose it would be more consistent to use OJ framework. Unfortunately, I'm not an expert about this framework which is a bit complex (to be honest, I often omitted to use it), but it's quite easy to find examples as many plugins and cursor tools already use it. Would be good to have some help in the wiki developper section. Michaël > > undo/redo for whole features should work accordingly. > > ede > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Jump-pilot-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Jump-pilot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
