protected void adaptToInsert(){
  int myStart=fPosition.offset;
  int myEnd=fPosition.offset + fPosition.length - 1;
  myEnd=Math.max(myStart,myEnd);
  int yoursStart=fOffset;
  int yoursEnd=fOffset + fReplaceLength - 1;
  yoursEnd=Math.max(yoursStart,yoursEnd);
  if (myEnd < yoursStart)   return;
  if (myStart < yoursStart)   fPosition.length+=fReplaceLength;
 else   fPosition.offset+=fReplaceLength;
}

protected void adaptToInsert ( ) { int myStart = fPosition . offset ; int myEnd = fPosition . offset + fPosition . length - 1 ; myEnd = Math . max ( myStart , myEnd ) ; int yoursStart = fOffset ; int yoursEnd = fOffset + fReplaceLength - 1 ; yoursEnd = Math . max ( yoursStart , yoursEnd ) ; if ( myEnd < yoursStart ) return ; if ( myStart < yoursStart ) fPosition . length += fReplaceLength ; else fPosition . offset += fReplaceLength ; }
adapts the currently investigated position to an insertion .
