Community
Participate
Working Groups
Build Identifier: Official Eclipse 3.7.1 When using dialog from Java >> Editor >> Templates >> Edit. Undo seems to work improperly. We can revert to only one element from history. After that undo will be disabled in contex menu and shortcut. Reproducible: Always
Created attachment 206401 [details] Proposed path Proposed workaround See line 136: if (fOperationCode == ITextOperationTarget.REDO || fOperationCode == ITextOperationTarget.UNDO){ return; }
Thanks Wojciech! (In reply to comment #1) > Created attachment 206401 [details] > Proposed path > > Proposed workaround > > See line 136: > if (fOperationCode == ITextOperationTarget.REDO || fOperationCode == > ITextOperationTarget.UNDO){ > return; > } That makes sense to me, and I verified that undo works multiple times after this change. Dani, assigning to you as you will anyway have to commit the change in org.eclipse.ui.texteditor.templates.TemplatePreferencePage.EditTemplateDialog :)
Fix also needs to go into org.eclipse.ui.texteditor.templates.TemplatePreferencePage. *** This bug has been marked as a duplicate of bug 206111 ***