updates current object 's state on the basis of the given event assuming that there are no stored change ranges that start after offset denoted by the given event . concode_field_sep boolean myCollectChanges concode_elem_sep List<TextChangeImpl> myChanges concode_field_sep void documentChanged concode_elem_sep void cutChangesIfNecessary concode_elem_sep int findIndex concode_elem_sep void mergeChangesIfNecessary concode_elem_sep List<? extends TextChange> getChanges concode_elem_sep void setCollectChanges concode_elem_sep void reset concode_elem_sep void beforeDocumentChange
void function ( DocumentEvent arg0 , StringBuilder arg1 ) { int loc0 = findIndex ( arg0 . getOffset ( ) ) ; int loc1 = arg0 . getOffset ( ) + arg0 . getNewLength ( ) ; TextChangeImpl loc2 = new TextChangeImpl ( arg1 , arg0 . getOffset ( ) , loc1 ) ; if ( loc0 < 0 ) { myChanges . add ( loc2 ) ; } else { myChanges . add ( loc0 , loc2 ) ; } }