[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Re: Questions about building on top of the XML Editor

Konstantin Komissarchik wrote:
Yeah, I've been sifting through all that code, but without having a real good grasp about what all the pieces are, what they are called and how they are put together, it's a bit like looking for a needle in the haystack.

I did find IStructuredDocument.addDocumentChangedListener() api, but that isn't the right level of abstraction for me since it deals with document regions. I am looking for something that deals with DOM nodes.


As for some of the DOM nodes, you might want to look at the EMFDOMAdaptor, which I think will get you in the direction you want to go, as it keeps an EMF Model and DOM model in synch, so that changes to one get propopogated into the other. Might be able to do something similar in your situation, or at least it might give you some ideas.


Regarding the formatting question, I am not looking for a way to format an existing document, but rather for something that will create well-formatted structure (in localized manner) as new content is added to the document.

I believe that is taken care of for you automatically, but I could be mistaken.