Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » MVC concept problem in XML editor
MVC concept problem in XML editor [message #307213] Wed, 16 August 2006 09:37
Eclipse UserFriend
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
Previous Topic:Creating two levels of submenu in a pop up menu
Next Topic:Installation folder cleanup tool?
Goto Forum:
  


Current Time: Sat Jul 19 10:21:55 EDT 2025

Powered by FUDForum. Page generated in 0.03714 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top