Search code examples
smalltalksqueak

Undoing removal of methods in Squeak Smalltalk


How do I undo the removal of a method in Squeak Smalltalk?


Solution

    1. 'World Menu'->'open'->'simple change sorter'
    2. In the top-right pane, select the class from which the method was removed.
    3. In the middle pane, select the removed method.
    4. Right click on the method name, bringing up a menu
    5. Select "versions"
    6. When the versions tool comes up, select the top (most recent) version, which is the one you deleted.
    7. Click the "revert" button

    When you browse your class, you will see that the method is restored.