Problems with Rename Refactoring and IFileBufferListener/IDocumentListener/IPositionUpdater [message #323496] |
Sat, 22 December 2007 17:04  |
Eclipse User |
|
|
|
Originally posted by: eclipsenews-9999-exp.sblk.de
Hi all, I am seeing a strange phenomenon.
I am using an IFileBufferListener to register an IDocumentListener and a
IPositionUpdater for every Java file opened (I need to update/keep track
of custom Positions).
This works perfectly for all files which are affected by a rename
refactoring, but not for the renamed file itself.
The registered IPositionUpdater never receives any DocumentEvents for
the change of the class name/package declaration in the renamed file.
I am seeing a call to
IFileBufferListener.bufferDisposed(IFileBuffer)
followed by a call to
IFileBufferListener.bufferCreated(IFileBuffer)
At the time the old buffer is disposed, the underlying file store still
contains the original class name. Once the buffer is recreated, it
already contains the new class name.
Is this an intended behaviour? And is there any way I can get my
IPositionUpdater implementation to "see" those changes?
Is there maybe an even earlier place where I could register
IDocumentListeners and IPositionUpdaters for a newly opened Document?
Thanks a lot.
Greetings.
Hans Meyer
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05442 seconds