dca1e1fc232f708c47b9a3de305a719f30e7d06e
[phpeclipse.git] /
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
12 package net.sourceforge.phpdt.internal.ui.preferences;
13
14 import net.sourceforge.phpdt.internal.ui.IJavaHelpContextIds;
15 //import net.sourceforge.phpeclipse.PHPeclipsePlugin;
16 import net.sourceforge.phpeclipse.ui.WebUI;
17
18 /**
19  * Code Assist preference page.
20  * <p>
21  * Note: Must be public since it is referenced from plugin.xml
22  * </p>
23  * 
24  * @since 3.0
25  */
26 public class CodeAssistPreferencePage extends
27                 AbstractConfigurationBlockPreferencePage {
28
29         /*
30          * @see net.sourceforge.phpdt.internal.ui.preferences.AbstractConfigureationBlockPreferencePage#getHelpId()
31          */
32         protected String getHelpId() {
33                 return IJavaHelpContextIds.JAVA_EDITOR_PREFERENCE_PAGE;
34         }
35
36         /*
37          * @see net.sourceforge.phpdt.internal.ui.preferences.AbstractConfigurationBlockPreferencePage#setDescription()
38          */
39         protected void setDescription() {
40                 // This page has no description
41         }
42
43         /*
44          * @see net.sourceforge.phpdt.internal.ui.preferences.AbstractConfigurationBlockPreferencePage#setPreferenceStore()
45          */
46         protected void setPreferenceStore() {
47                 setPreferenceStore(WebUI.getDefault().getPreferenceStore());
48         }
49
50         /*
51          * @see net.sourceforge.phpdt.internal.ui.preferences.AbstractConfigureationBlockPreferencePage#createConfigurationBlock(net.sourceforge.phpdt.internal.ui.preferences.OverlayPreferenceStore)
52          */
53         protected IPreferenceConfigurationBlock createConfigurationBlock(
54                         OverlayPreferenceStore overlayPreferenceStore) {
55                 return new CodeAssistConfigurationBlock(this, overlayPreferenceStore);
56         }
57 }