1 /*******************************************************************************
2 * Copyright (c) 2000, 2004 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpeclipse.wiki.preferences;
13 import net.sourceforge.phpeclipse.wiki.editor.WikiEditorPlugin;
15 import org.eclipse.ui.IWorkbenchPreferencePage;
16 import org.eclipse.ui.texteditor.templates.TemplatePreferencePage;
18 * @see org.eclipse.jface.preference.PreferencePage
20 public class TemplatesPreferencePage extends TemplatePreferencePage implements IWorkbenchPreferencePage {
22 public TemplatesPreferencePage() {
23 setPreferenceStore(WikiEditorPlugin.getDefault().getPreferenceStore());
24 setTemplateStore(WikiEditorPlugin.getDefault().getTemplateStore());
25 setContextTypeRegistry(WikiEditorPlugin.getDefault().getContextTypeRegistry());
28 protected boolean isShowFormatterSetting() {
33 public boolean performOk() {
34 boolean ok= super.performOk();
36 WikiEditorPlugin.getDefault().savePluginPreferences();