Community
Participate
Working Groups
It is not possible to undo a copy in the compare view. If you copied something by accident from the wrong side, you have to cancel the complete compare session, because undo is not supported.
Created attachment 49829 [details] correct undo/redo for all file types see also bug nr 33665
Thanks for the patch.
Some comments on that last patch This fixes the undo/redo is available for all text files And this fixes some problems that the undo/redo menu is correctly enabled/disabled
I have a problem with the patch. It provides an implementation for a method that was previously empty (TextMergeViewer#configureTextViewer). This is OK for the Java merge viewer since it doesn't call the inherited version. However, if other subclasses did include a super call and called configure on the source viewer, they could run into problems (i.e. you can only call configure again if you call unconfigure first). We could probably get around this by overriding the configure method of MergeSourceViewer to do the unconfigure if it gets reconfigured.
true I can remember that I did have such a call to unconfigure at some time but I must have removed it by unknown reason :-)
I have overridden configure in the MergeSourceViewer to do what I suggested in my previous comment. According to the spec of ISourceViewer, this should be enough. I have released the patch to HEAD with the following copyright added to the files. If the copyright needs to b changed, let me know. Max Weninger (max.weninger@windriver.com) - Bug 131895 [Edit] Undo in compare
BTW: you may want to set https://bugs.eclipse.org/bugs/show_bug.cgi?id=33665 to a duplicate of this
*** Bug 33665 has been marked as a duplicate of this bug. ***
Verified fixed in I20060919-0010