MVC concept problem in XML editor [message #307213] |
Wed, 16 August 2006 09:37 |
Eclipse User |
|
|
|
Originally posted by: dave.dave.com
Hi
I am stuck in a bit of logically loop. I basically have a xml editor
with wizards set up and underneath it is a model data structure (DOM)
that uses the observer pattern to notify the gui (text editor/wizard gui
etc). My problem is how do i update the text editor correctly ?
Currently I update the text editor through the reconciller class
(whenever the text changes, I need to update the model struct) but
whenever the model do an all out update, I set the text editor new text
using
(this.getDocumentProvider().getDocument(this.getEditorInput( )).set(XMLModel.toString());)
this causes the text editor to set the text and reconcile again causing
an error.
Can anyone suggest how to fix this problem or point me to an article on
indepth eclipse editor tutorials ? Is the reconciller the correct place
to observe changes and update the model ?
Thanks, Dave
|
|
|
Powered by
FUDForum. Page generated in 0.03714 seconds