*/
@Override
public boolean performOk() {
IProject project = getProject();
IMavenWtpPreferencesManager preferencesManager = MavenWtpPlugin.getDefault().getMavenWtpPreferencesManager();
IMavenWtpPreferences preferences = preferencesManager.getPreferences(project);
IMavenWtpPreferences newPreferences = preferencesManager.createNewPreferences();
if(project != null) {
newPreferences.setEnabledProjectSpecificSettings(overrideButton.getSelection());
}
if (enableM2eWtpButton != null) {
newPreferences.setEnabled(enableM2eWtpButton.getSelection());
}
if (genApplicationXmlButton != null) {
newPreferences.setApplicationXmGeneratedInBuildDirectory(genApplicationXmlButton.getSelection());
}
if (warMavenArchiverButton != null) {
newPreferences.setWebMavenArchiverUsesBuildDirectory(warMavenArchiverButton.getSelection());
}
if (enablersComposites != null) {
for (ConfiguratorEnablerComposite enablerComposite : enablersComposites) {
enablerComposite.savePreferences();
}
}
if(!newPreferences.equals(preferences)) {
preferencesManager.savePreferences(newPreferences, getProject());
boolean res = MessageDialog.openQuestion(getShell(), Messages.MavenWtpPreferencePage_Maven_JavaEE_Integration_Settings, //
Messages.MavenWtpPreferencePage_Update_Projects_After_Preference_Changes);
if(res) {
updateImpactedProjects();