// invoke any nature specific file refreshing
String[] natures = ProjectNatureFactory.getProjectNatures(project);
for (String nature : natures){
ProjectManager manager = ProjectManagement.getProjectManager(nature);
if (manager != null){
manager.refresh(project, ifile);
}
}
return ifile;
}