projectPreferences.flush();
// update buildpath
ComposerProject composerProject = new ComposerProject(scriptProject.getProject());
BuildPathManager bpm = new BuildPathManager(composerProject);
bpm.update();
} catch (CoreException e) {
e.printStackTrace();
} catch (BackingStoreException e) {
e.printStackTrace();
}