1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Save the preferences.

This commit is contained in:
Alain Magloire 2003-11-25 20:07:16 +00:00
parent 9c677d807f
commit 1d44aef852

View file

@ -10,6 +10,7 @@
*******************************************************************************/
package org.eclipse.cdt.make.internal.ui.preferences;
import org.eclipse.cdt.make.core.MakeCorePlugin;
import org.eclipse.cdt.make.internal.ui.MakeProjectOptionBlock;
import org.eclipse.cdt.make.internal.ui.MakeUIPlugin;
import org.eclipse.cdt.ui.dialogs.ICOptionContainer;
@ -62,7 +63,11 @@ public class MakePreferencePage extends PreferencePage implements IWorkbenchPref
}
public boolean performOk() {
return fOptionBlock.performApply(null);
boolean ok = fOptionBlock.performApply(null);
if (MakeCorePlugin.getDefault().getPluginPreferences().needsSaving()) {
MakeCorePlugin.getDefault().savePluginPreferences();
}
return ok;
}
/**