Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-1104

refactor undo/redo system to abstract view model

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.8
    • Fix Version/s: 3.0
    • Component/s: Datamodel, gui design issue
    • Labels:

      Description

      the undo and redo history is part of the model for a jalview session, but currently resides in the gui implementation model (jalview.*gui.AlignFrame.undoList/etc). Moving it to the model will allow undo/redo support to be easily implemented for out-of-gui operations.

      Need to refactor the stacks, addUndoItem and related functions to the model, and ensure that the gui implementation's 'alignmentUpdated' method is called whenever the undo/redo stacks are touched, or alternately, introduce a new light-weight method/event analogous to the 'AlignFrame.updateEditMenuBar()' method which handles any change in the undo/redo stacks.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jprocter James Procter
              Reporter:
              jprocter James Procter
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated: