change.setEdit(edit);
return change;
}else if (info.getArguments() instanceof DeleteArguments) {
// check if resource to delete will still exists after parent deletion is performed - otherwise we can skip any change here
if (!info.getElement().getFullPath().isPrefixOf(info.getFile().getParent().getFullPath())) {
CompositeChange delChange = new CompositeChange("Deletions");
delChange.add(new DeleteWGAResourceChange(info.getFile().getParent().getFullPath(),false));
for(RefactoringInfo currentInfo : getAffectedResources(info.getFile().getParent(), new DeleteArguments())){
delChange.add(createChange(currentInfo));
}
return delChange;
}
}