protected IJavaElementDelta[] growAndAddToArray(IJavaElementDelta[] array,IJavaElementDelta addition){
  IJavaElementDelta[] old=array;
  array=new IJavaElementDelta[old.length + 1];
  System.arraycopy(old,0,array,0,old.length);
  array[old.length]=addition;
  return array;
}

protected IJavaElementDelta [ ] growAndAddToArray ( IJavaElementDelta [ ] array , IJavaElementDelta addition ) { IJavaElementDelta [ ] old = array ; array = new IJavaElementDelta [ old . length + 1 ] ; System . arraycopy ( old , 0 , array , 0 , old . length ) ; array [ old . length ] = addition ; return array ; }
adds the new element to a new array that contains all of the elements of the old array . returns the new array .
