wiki:PRO_CHANGE_UNDO_MANAGER_R0
Last modified 16 years ago Last modified on 02/17/09 00:11:27

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro TicketQuery(summary=PRO_CHANGE_UNDO_MANAGER_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|) failed
current transaction is aborted, commands ignored until end of transaction block

Analysis

Overview

The PRO_LIB change manager tracks undo/redo changes made to properties.

The goal of this task is to provide an end user interface to the change manager. Add a user interface via the Edit menu for Undo and Redo. I don't think we should expose skipping, as that would be confusing to the user.

Task requirements

  • Add menu items to the edit menu that tracks the state of the change manager
    • Undo works down the stack
    • Redo works up the stack
  • Add key commands (control-z, control-shift-z for redo) to the menu items
  • Disable the menu items if you are at the proper end of the stack

Task result

The result of this task is code

Implementation idea

  • Look at:
    • org.sophie2.core.prolib.util.UndoManager
    • org.sophie2.core.prolib.events.ProChange
  • See the related tasks for the APIs to talk to

PRO_CHANGE_INFOS_R0 PRO_CHANGE_MANAGER_R0

How to demo

Demo the user interface for undo/redo

Design

Implementation

(Implementation results should be described and linked here (from the wiki or the repository))

Testing

Comments

(Write comments for this or later revisions here.)