From: Don T. <nos...@gm...> - 2006-05-23 13:09:23
|
Fabio Zadrozny wrote: > 1. Select a word > 2. Rename Occurrence > 3. Type something new and then change your mind - hit ESC > 4. The new text remains everywhere AND if you select it so that you > can > change it back again then neither Mark Occurrences or Rename Occurrences > works on it. > 5. Ctrl-Z does not back things out back either. > > > Well, I can see that it may not get the new AST because it does not > force a reparse before rename occurrence, and this can probably be fixed > without much problems (or you can save and then make it again and it > should work, as the AST is regenerated on save), but ctrl+z works for me > undoing the changes without any problems, so, it may be something in > your configuration... which Eclipse version are you using? > Fabio: Ctrl-z works Ok now so I must have confused Pydev (or myself) last night when I was playing with it. Hitting ctrl-z (instead of Esc) to dismiss a half-completed Rename Occurrence also works as expected. I think that there is a case that is a bit awkward (the case you identified above): after a Rename Occurrence is completed and you decide that you made a mistake then Pydev ignores an additional Rename Occurrence on replacement string until the file is saved. I have to save the file before it can be fixed. I don't think that this is a serious bug, but can it be fixed in a future release? If so then I will log a bug report. Don. |