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.FieldEditorPreferencePage;
16 import org.eclipse.jface.preference.IPreferenceStore;
17 import org.eclipse.ui.IWorkbench;
18 import org.eclipse.ui.IWorkbenchPreferencePage;
24 public class PHPOutlinePreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
26 public PHPOutlinePreferencePage() {
27 super(FieldEditorPreferencePage.GRID);
28 //Initialize the preference store we wish to use
29 setPreferenceStore(PHPeclipsePlugin.getDefault().getPreferenceStore());
32 protected void createFieldEditors() {
33 final IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
36 BooleanFieldEditor outlineShowClass =
37 new BooleanFieldEditor(PHPeclipsePlugin.PHP_OUTLINE_CLASS, "Show classes in outline", getFieldEditorParent());
38 BooleanFieldEditor outlineShowFunc =
39 new BooleanFieldEditor(PHPeclipsePlugin.PHP_OUTLINE_FUNC, "Show functions in outline", getFieldEditorParent());
40 BooleanFieldEditor outlineShowVar =
41 new BooleanFieldEditor(PHPeclipsePlugin.PHP_OUTLINE_VAR, "Show variables in outline", getFieldEditorParent());
43 addField(outlineShowClass);
44 addField(outlineShowFunc);
45 addField(outlineShowVar);
49 * @see IWorkbenchPreferencePage#init
51 public void init(IWorkbench workbench) {