title: How to get notifications when xtext's EMF model changes with proper values
body: <p>We have a FormEditor containing four pages: three FormPages and fourth page is XTextEditor as a source page.</p>
  
  <p>Whenever user makes any changes (e.g. changing value in text box) on FormPages, we change EMF model content inside XTextDocument.modify() method as given below:</p>
  
  <pre><code>    xtextEditor.getDocument().modify(new IUnitOfWork.Void&lt;XtextResource&gt;() {
  
          @Override
          public void process(XtextResource state) throws Exception {
              IParseResult parseResult = state.getParseResult();
              Assert.isNotNull(parseResult);
              EObject rootASTElement = parseResult.getRootASTElement();
  
              if (rootASTElement instanceof MyModel) {
                 XyzType t = ((MyModel) rootASTElement).getXyzType();
                  t.setName(name);   &lt;- ‘name’ is the new value entered on FormPage text box
              }
          }
      });
  </code></pre>
  
  <p>Now, we want to get notifications in FormPages, whenever EMF model gets changed when user makes some changes on source page i.e. XTextEditor.</p>
  
  <p>We tried adding IXtextModelListener and IXtextDocumentContentObserver to IXtextDocument; but these get called for every character entered in XTextEditor.</p>
  
  <p>Our requirement is to get notifications only when values in EMF model get changed (and not for text formatting e.g. when whitespace is inserted/removed).</p>
  
  <p>Can somebody please provide some pointers?</p>
  
  <p>Regards,
  Akhil</p>