How to reload an editor [message #106169] |
Fri, 21 November 2003 04:16 |
Eclipse User |
|
|
|
Originally posted by: arnaud.siminski.infotel.com
I am currently working on a editor that displays a file content.
Everything works fine except that the file is share between processes and
so the content of the file could change from time to time. The goal is to
reload the editor content for it to be synchronized with the file content.
I tried to implement a ResourceTracker like it was done in the Logic
Example, and caught the IResourceDelta.CHANGED status. When my file is
saved by someone else, the event is caught by the ResourceTracker but I
have got a hard time to refresh the editor... Basically, I refresh the
editor's data model, then fire a structure change and ask for a resfresh
of the rootEditPart but the changes are not dispayed...
Do you know if there is a simple method to do that ?
Arnaud
|
|
|
Powered by
FUDForum. Page generated in 1.03075 seconds