1 /**********************************************************************
2 Copyright (c) 2000, 2002 IBM Corp. 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 implementation
10 Klaus Hartlage - www.eclipseproject.de
11 **********************************************************************/
12 package net.sourceforge.phpeclipse;
14 import org.eclipse.jface.preference.BooleanFieldEditor;
15 import org.eclipse.jface.preference.DirectoryFieldEditor;
16 import org.eclipse.jface.preference.FieldEditorPreferencePage;
17 import org.eclipse.jface.preference.IPreferenceStore;
18 import org.eclipse.jface.preference.RadioGroupFieldEditor;
19 import org.eclipse.jface.preference.StringFieldEditor;
20 import org.eclipse.ui.IWorkbench;
21 import org.eclipse.ui.IWorkbenchPreferencePage;
27 public class PHPOutlinePreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
29 public PHPOutlinePreferencePage() {
30 super(FieldEditorPreferencePage.GRID);
31 //Initialize the preference store we wish to use
32 setPreferenceStore(PHPeclipsePlugin.getDefault().getPreferenceStore());
35 protected void createFieldEditors() {
36 final IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
38 BooleanFieldEditor outlineShowClass =
39 new BooleanFieldEditor(PHPeclipsePlugin.PHP_OUTLINE_CLASS, "Show classes in outline", getFieldEditorParent());
40 BooleanFieldEditor outlineShowFunc =
41 new BooleanFieldEditor(PHPeclipsePlugin.PHP_OUTLINE_FUNC, "Show functions in outline", getFieldEditorParent());
42 BooleanFieldEditor outlineShowVar =
43 new BooleanFieldEditor(PHPeclipsePlugin.PHP_OUTLINE_VAR, "Show variables in outline", getFieldEditorParent());
45 addField(outlineShowClass);
46 addField(outlineShowFunc);
47 addField(outlineShowVar);
51 * @see IWorkbenchPreferencePage#init
53 public void init(IWorkbench workbench) {