Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

  1. Follow the instructions at Client Development Setup to set up the dev environment
  2. In windows or linux, start the browser with OOPHM plugin installed and navigate to the WIAB server as in the above instruction. This lets you debug the client code.
  3. Let's try to see if there are any classes to do with undo.
    1. In eclipse hit ctrl+shift+t (class search), and type "Undo".
    2. Notice there is a class called UndoManagerImpl. Notice there is a method called undoPlus() in this class.
    3. Let's look up where it's called, by putting the cursor over the method and hit ctrl+shft+g, which looks up call references should take you to EditorUndoManagerImpl.undo().
    4. Repeat call reference look up again on EditorUndoMangerImpl.undo(), should take you to EditorImpl:handleCommand(). Notice on line 764 if (event.isUndoCombo()) {. Bingo
    5. Putting cursor over isUndoCombo() and hit ctrl+t, which looks up implementations of the method. This will take you to SignalEventImpl.isUndoCombo()
  4. Looks like it currently uses "Z" for undo. Let's change it to "0".
  5. Refresh the browser with OOPHM and try the feature. The code now works in debug.
  6. Compile the WIAB (slow) to see it works outside of debug
    1. In the wave-protocol directory run ant
    2. Restart WIAB server
  7. Open WIAB in a browser without using OOPHM by directly visiting http://localhost:9898Image Removed and check the feature works.
    1. Open WIAB client.
    2. Create a new wave
    3. Type some text
    4. ctrl+0