protected void addResourceDelta(IResourceDelta child){
switch (this.kind) {
case ADDED:
case REMOVED:
    return;
case CHANGED:
  this.changeFlags|=F_CONTENT;
break;
default :
this.kind=CHANGED;
this.changeFlags|=F_CONTENT;
}
if (this.resourceDeltas == null) {
this.resourceDeltas=new IResourceDelta[5];
this.resourceDeltas[this.resourceDeltasCounter++]=child;
return;
}
if (this.resourceDeltas.length == this.resourceDeltasCounter) {
System.arraycopy(this.resourceDeltas,0,(this.resourceDeltas=new IResourceDelta[this.resourceDeltasCounter * 2]),0,this.resourceDeltasCounter);
}
this.resourceDeltas[this.resourceDeltasCounter++]=child;
}

protected void addResourceDelta ( IResourceDelta child ) { switch ( this . kind ) { case ADDED : case REMOVED : return ; case CHANGED : this . changeFlags |= F_CONTENT ; break ; default : this . kind = CHANGED ; this . changeFlags |= F_CONTENT ; } if ( this . resourceDeltas == null ) { this . resourceDeltas = new IResourceDelta [ 5 ] ; this . resourceDeltas [ this . resourceDeltasCounter ++ ] = child ; return ; } if ( this . resourceDeltas . length == this . resourceDeltasCounter ) { System . arraycopy ( this . resourceDeltas , 0 , ( this . resourceDeltas = new IResourceDelta [ this . resourceDeltasCounter * 2 ] ) , 0 , this . resourceDeltasCounter ) ; } this . resourceDeltas [ this . resourceDeltasCounter ++ ] = child ; }
adds the child delta to the collection of affected children . if the child is already in the collection , walk down the hierarchy .
