Implementing Undo

From OpenJUMP Wiki
Jump to navigation Jump to search
  • 2005-08-11 21:10:20 Jonatan: you remember the undo Tools ?
  • 2005-08-11 21:10:26 Jon: ah yes
  • 2005-08-11 21:10:48 Jonatan: you have me notices about this ?
  • 2005-08-11 21:11:57 Jon: There are two ways to do Undo: the hard way and the easy way
  • 2005-08-11 21:12:18 Jonatan: mm
  • 2005-08-11 21:12:43 Jon: If you are lucky, you can use the easy way; otherwise you must use the hard way
  • 2005-08-11 21:13:49 Jonatan: what you recomend me ?
  • 2005-08-11 21:15:32 Jon: it depends...
  • 2005-08-11 21:16:02 Jon: The easy way uses EditTransaction. The hard way uses UndoableCommand. I will give you an example of each...
  • 2005-08-11 21:16:20 Jonatan: mmm
  • 2005-08-11 21:21:56 Jon: Example of UndoableCommand: AddNewCategoryPlugIn
  • 2005-08-11 21:22:06 Jon: Example of EditTransaction: DeleteAllFeaturesPlugIn