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.
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.