NOTICE! This is a static HTML version of a legacy LOCI Software ticket.

LOCI projects are now located on GitHub. The Bio-Formats project can be found here.

Ticket #30 (closed enhancement: moved)

Opened 2007-03-19T10:19:56-05:00

Last modified 2014-01-09T13:11:24-06:00

State logic needs support for invertible operations

Reported by: curtis Owned by: curtis
Priority: critical Milestone: visbio3.50
Component: visbio Severity: serious
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by curtis)

The undo/redo logic currently functions by saving a snapshot of the current work environment to an XML document in memory, and executing a "restore state" command with the appropriate document when an undo operation is requested.

Unfortunately, restoring from a state document can be extremely slow in many cases. For example, if the state contains 30 MB of overlay data, it does not make sense to sift through all of it, comparing it with the current overlay data, looking for incongruities, merely to undo a single overlay edit.

Rather, such operations are easily invertible with a counter operation; for example, to undo adding a new overlay, merely record onto the stack that the inverse operation is a deletion of that overlay. When an undo or redo operation is requested, the appropriate command or its inverse can be executed quickly.

For non-invertible operations, a warning could be issued stating that a state restoration will be needed to proceed (or perhaps merely stating that "undo will be slow").

Change History

comment:1 Changed 2007-08-01T15:03:18-05:00 by curtis

  • Milestone set to visbio3.5

comment:2 Changed 2014-01-09T13:11:24-06:00 by curtis

  • Status changed from new to closed
  • Resolution set to moved
  • Description modified
  • Severity set to serious