for (Iterator iter= fWorkingSets.iterator(); iter.hasNext();) { WorkingSetDelta workingSetDelta= new WorkingSetDelta((IWorkingSet)iter.next()); processJavaDelta(workingSetDelta, event.getDelta()); IResourceDelta[] resourceDeltas= event.getDelta().getResourceDeltas(); if (resourceDeltas != null) { for (int i= 0; i < resourceDeltas.length; i++) { processResourceDelta(workingSetDelta, resourceDeltas[i]); }
workingSets= (IWorkingSet[])fWorkingSets.toArray(new IWorkingSet[fWorkingSets.size()]); } for (int w= 0; w < workingSets.length; w++) { WorkingSetDelta workingSetDelta= new WorkingSetDelta(workingSets[w]); processJavaDelta(workingSetDelta, event.getDelta()); IResourceDelta[] resourceDeltas= event.getDelta().getResourceDeltas(); if (resourceDeltas != null) { for (int r= 0; r < resourceDeltas.length; r++) { processResourceDelta(workingSetDelta, resourceDeltas[r]);
	public void elementChanged(ElementChangedEvent event) {		synchronized(fWorkingSets) {			for (Iterator iter= fWorkingSets.iterator(); iter.hasNext();) {				WorkingSetDelta workingSetDelta= new WorkingSetDelta((IWorkingSet)iter.next());				processJavaDelta(workingSetDelta, event.getDelta());				IResourceDelta[] resourceDeltas= event.getDelta().getResourceDeltas();				if (resourceDeltas != null) {					for (int i= 0; i < resourceDeltas.length; i++) {						processResourceDelta(workingSetDelta, resourceDeltas[i]);					}				}				workingSetDelta.process();			}		}	}