installDocumentListeners();
  protected void modelChanged()  {    if (textComponent == null || rootView == null)       return;    ViewFactory factory = rootView.getViewFactory();    if (factory == null)       return;    Document doc = textComponent.getDocument();    if (doc == null)      return;    Element elem = doc.getDefaultRootElement();    if (elem == null)      return;    setView(factory.create(elem));  }