Eclipse 4 undo/redo mechanism [message #1573542] |
Mon, 19 January 2015 15:15  |
Eclipse User |
|
|
|
Hi all,
I was wondering if anyone has some information or useful links on how to implement undo/redo mechanism in the eclipse4-based editor.
I developed a set of plugins that extends Eclipse IDE with some drawing views (mainly drawing lines between two element trees). I've used e4 tools to develop the tool so far, but now I need to implement undo/redo mechanism. I could develop my own command stack and introduce my own undo and redo buttons in my tool, but I was wondering if there is some tutorial on how to integrate this with existing Eclipse IDE mechanism. I found some instructions for previous eclipse versions (one is present in the official eclipse rpc help). However I was not able to replicate this in the current version.
I must stress out that I'm a beginner to e4 rpc development and any comment, suggestion, or a link that you may give me would be greatly appreciated.
Best regards.
|
|
|
|
|
Re: Eclipse 4 undo/redo mechanism [message #1586219 is a reply to message #1574450] |
Mon, 26 January 2015 13:40  |
Eclipse User |
|
|
|
Hi all,
thank you for your suggestions. In the end I choose Mihael's solution. As a do not use SourceViewer or other JFace components, I created my own commands and command stack within a custom-made view component. However, this handler was of great help, and I just changed it a little bit to suit my needs.
Kind ragards.
|
|
|
Powered by
FUDForum. Page generated in 0.36519 seconds