CoreModel.getDefault().setProjectDescription(proj, projectDescription);
} catch (CoreException e) {
e.printStackTrace();
}
//use refresh scope manager to refresh
RefreshScopeManager manager = RefreshScopeManager.getInstance();
IWorkspaceRunnable runnable = manager.getRefreshRunnable(proj);
try {
ResourcesPlugin.getWorkspace().run(runnable, null, IWorkspace.AVOID_UPDATE, new NullProgressMonitor());
} catch (CoreException e) {
e.printStackTrace();
}