packageDeleteDescriptions[i] = ResourceDescription
.fromResource(resource);
pm.worked(1);
}
DynamicValidationStateChange result = (DynamicValidationStateChange) super
.perform(new SubProgressMonitor(pm, count));
for (int i = 0; i < fPackageDeletes.size(); i++) {
IResource resource = (IResource) fPackageDeletes.get(i);
ResourceDescription resourceDescription = packageDeleteDescriptions[i];
resourceDescription.recordStateFromHistory(resource,
new SubProgressMonitor(pm, 1));
result.add(new UndoDeleteResourceChange(resourceDescription));
}
return result;
}