Inconsistent behaviour in TextEditor [message #333624] |
Thu, 18 December 2008 15:44 |
Damian Philipp Messages: 30 Registered: July 2009 |
Member |
|
|
Hello,
I built a MultiPageEditor[Part] consisting of a TextEditor showing the
source (an XML-File) and a second page with a TreeViewer showing the
structure of that file.
I'm currently looking into updating the file when the underlying
resource changes and applying marker resolutions in the editor.
While comparing the behaviour of my editor to a non-multipage
TextEditor, I noticed a strange difference:
When the Source in the TextEditor has changed, i.e. the Editor is dirty,
the plain TextEditor offers to reload the file upon discovering that the
contents of the file on disk have changed. The TextEditor embedded in my
MultiPageEditor does no such thing. When there are no changes (editor
not dirty), both variants automatically update the displayed file content.
Where does this discrepancy come from and how can I get the embedded
TextEditor to behave the same as the plain TextEditor?
Regards
Damian Philipp
|
|
|
Powered by
FUDForum. Page generated in 0.03845 seconds