import org.eclipse.ui.IWorkbenchPreferencePage;
import org.eclipse.ui.texteditor.templates.TemplatePreferencePage;
+
/**
* @see org.eclipse.jface.preference.PreferencePage
*/
-public class TemplatesPreferencePage extends TemplatePreferencePage implements IWorkbenchPreferencePage {
-
+public class TemplatesPreferencePage extends TemplatePreferencePage implements
+ IWorkbenchPreferencePage {
+
public TemplatesPreferencePage() {
setPreferenceStore(WebUI.getDefault().getPreferenceStore());
setTemplateStore(WebUI.getDefault().getTemplateStore());
protected boolean isShowFormatterSetting() {
return false;
}
-
-
+
public boolean performOk() {
- boolean ok= super.performOk();
-
+ boolean ok = super.performOk();
+
WebUI.getDefault().savePluginPreferences();
-
+
return ok;
}
}