Added a phpeclipse module and slightly changed the opt/extra sets; now
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / src / net / sourceforge / phpeclipse / ui / templates / preferences / TemplatesPreferencePage.java
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
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpeclipse.ui.templates.preferences;
12
13 import net.sourceforge.phpeclipse.ui.WebUI;
14
15 import org.eclipse.ui.IWorkbenchPreferencePage;
16 import org.eclipse.ui.texteditor.templates.TemplatePreferencePage;
17 /**
18  * @see org.eclipse.jface.preference.PreferencePage
19  */
20 public class TemplatesPreferencePage extends TemplatePreferencePage implements IWorkbenchPreferencePage {
21         
22         public TemplatesPreferencePage() {
23                 setPreferenceStore(WebUI.getDefault().getPreferenceStore());
24                 setTemplateStore(WebUI.getDefault().getTemplateStore());
25                 setContextTypeRegistry(WebUI.getDefault().getContextTypeRegistry());
26         }
27
28         protected boolean isShowFormatterSetting() {
29                 return false;
30         }
31         
32         
33         public boolean performOk() {
34                 boolean ok= super.performOk();
35                 
36                 WebUI.getDefault().savePluginPreferences();
37                 
38                 return ok;
39         }
40 }