public final void insertUpdate(DocumentEvent e){
  Document doc=e.getDocument();
  Object o=doc.getProperty("i18n");
  if (o instanceof Boolean) {
    Boolean i18nFlag=(Boolean)o;
    if (i18nFlag.booleanValue() != i18nView) {
      i18nView=i18nFlag.booleanValue();
      modelChanged();
      return;
    }
  }
  Rectangle alloc=(painted) ? getVisibleEditorRect() : null;
  rootView.insertUpdate(e,alloc,rootView.getViewFactory());
}

public final void insertUpdate ( DocumentEvent e ) { Document doc = e . getDocument ( ) ; Object o = doc . getProperty ( "i18n" ) ; if ( o instanceof Boolean ) { Boolean i18nFlag = ( Boolean ) o ; if ( i18nFlag . booleanValue ( ) != i18nView ) { i18nView = i18nFlag . booleanValue ( ) ; modelChanged ( ) ; return ; } } Rectangle alloc = ( painted ) ? getVisibleEditorRect ( ) : null ; rootView . insertUpdate ( e , alloc , rootView . getViewFactory ( ) ) ; }
the insert notification . gets sent to the root of the view structure that represents the portion of the model being represented by the editor . the factory is added as an argument to the update so that the views can update themselves in a dynamic ( not hardcoded ) way .
