|how to update editor input? [message #284447]
||Mon, 25 April 2005 11:31
Originally posted by: joerni_78.gmx.de|
Hi, i'm new to eclipse. I'm trying to build a Multipageeditor with a
FormPage and a texteditorpage, which shows the 'source' code (XML) of the
file to edit. These files are created and changed directly with the help
of an external jar. That means, editing the formPage results in an updated
file. Now I have the problem of updating the correspondend texteditorpage.
I thought the pageChange(int newPageIndex)-Method in FormEditor class
could be a good place to update the texteditor content.
I tried the following:
IEditorInput editorInput = ...
Actually this updates the content of the editor when switching to the
editor page, but when I try to edit the texteditor content then, a
MessageDialog appears ->
"Update Conflict- The File has been changed on the File System. Do you
want to load the changes?"
How can I avoid this? I tried various things, but I just do not come to a
solution. How can I get the texteditor to simply rescan the file content
without checking, if the file has been changed?