How to design undo & redo in text editor?

后端 未结 8 865
渐次进展
渐次进展 2020-12-05 15:11

Part of my project is to write a text editor that is used for typing some rules, compiling my application and running it. Writing compiler was end and release beta version.

8条回答
  •  感动是毒
    2020-12-05 15:45

    Here is a snippet that shows how SWT supports Undo/Redo operations. Take it as practical example (or use it directly, if your editor is based on SWT):

    SWT Undo Redo

提交回复
热议问题