Config editor through XML file
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / PHPEclipsePreferencePage.java
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPEclipsePreferencePage.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPEclipsePreferencePage.java
deleted file mode 100644 (file)
index 8a047f1..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-/**********************************************************************
-Copyright (c) 2000, 2002 IBM Corp. and others.
-All rights reserved. This program and the accompanying materials
-are made available under the terms of the Common Public License v1.0
-which accompanies this distribution, and is available at
-http://www.eclipse.org/legal/cpl-v10.html
-
-Contributors:
-    IBM Corporation - Initial implementation
-    Klaus Hartlage - www.eclipseproject.de
-**********************************************************************/
-package net.sourceforge.phpeclipse;
-
-import org.eclipse.jface.preference.BooleanFieldEditor;
-import org.eclipse.jface.preference.DirectoryFieldEditor;
-import org.eclipse.jface.preference.FieldEditorPreferencePage;
-import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.jface.preference.RadioGroupFieldEditor;
-import org.eclipse.jface.preference.StringFieldEditor;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchPreferencePage;
-
-/**
- * 
- * @author khartlage
- */
-public class PHPEclipsePreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
-
-  public PHPEclipsePreferencePage() {
-    super(FieldEditorPreferencePage.GRID);
-    //Initialize the preference store we wish to use
-    setPreferenceStore(PHPeclipsePlugin.getDefault().getPreferenceStore());
-  }
-
-  protected void createFieldEditors() {
-    final IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
-
-    StringFieldEditor localhost = new StringFieldEditor(PHPeclipsePlugin.LOCALHOST_PREF, "&Localhost:", 60, getFieldEditorParent());
-
-    DirectoryFieldEditor documentRoot =
-      new DirectoryFieldEditor(PHPeclipsePlugin.DOCUMENTROOT_PREF, "&DocumentRoot:", getFieldEditorParent());
-
-    BooleanFieldEditor useExternalBrowser =
-      new BooleanFieldEditor(PHPeclipsePlugin.USE_EXTERNAL_BROWSER_PREF, "&Use External Browser", getFieldEditorParent());
-
-    StringFieldEditor externalBrowser =
-      new StringFieldEditor(PHPeclipsePlugin.EXTERNAL_BROWSER_PREF, "&External Browser command:", 60, getFieldEditorParent());
-
-    StringFieldEditor startMySQL =
-      new StringFieldEditor(PHPeclipsePlugin.MYSQL_PREF, "&MySQL command:", 60, getFieldEditorParent());
-
-    StringFieldEditor startApache =
-      new StringFieldEditor(PHPeclipsePlugin.APACHE_START_PREF, "Start &Apache command:", 60, getFieldEditorParent());
-
-    StringFieldEditor stopApache =
-      new StringFieldEditor(PHPeclipsePlugin.APACHE_STOP_PREF, "&Stop Apache command:", 60, getFieldEditorParent());
-
-    StringFieldEditor restartApache =
-      new StringFieldEditor(PHPeclipsePlugin.APACHE_RESTART_PREF, "&Restart Apache command:", 60, getFieldEditorParent());
-
-    StringFieldEditor externalParser =
-      new StringFieldEditor(PHPeclipsePlugin.EXTERNAL_PARSER_PREF, "&External Parser command:", 60, getFieldEditorParent());
-
-
-  RadioGroupFieldEditor chooseParser = new RadioGroupFieldEditor(
-    IPreferenceConstants.PHP_PARSER_DEFAULT,
-    "Choose PHP parser",
-    1,
-    new String[][] {
-      {"Internal parser", 
-       IPreferenceConstants.PHP_INTERNAL_PARSER
-      },
-      {"External parser", 
-       IPreferenceConstants.PHP_EXTERNAL_PARSER
-      }
-    },
-    this.getFieldEditorParent());
-    
-    BooleanFieldEditor parseOnSave =
-      new BooleanFieldEditor(PHPeclipsePlugin.PHP_PARSE_ON_SAVE, "&Parse automatically on save", getFieldEditorParent());
-
-      BooleanFieldEditor outlineShowClass =
-        new BooleanFieldEditor(PHPeclipsePlugin.PHP_OUTLINE_CLASS, "Show classes in outline", getFieldEditorParent());
-      BooleanFieldEditor outlineShowFunc =
-        new BooleanFieldEditor(PHPeclipsePlugin.PHP_OUTLINE_FUNC, "Show functions in outline", getFieldEditorParent());
-      BooleanFieldEditor outlineShowVar =
-        new BooleanFieldEditor(PHPeclipsePlugin.PHP_OUTLINE_VAR, "Show variables in outline", getFieldEditorParent());
-
-    
-    addField(localhost);
-    addField(documentRoot);
-    addField(useExternalBrowser);
-    addField(externalBrowser);
-    addField(startMySQL);
-    addField(startApache);
-
-    addField(stopApache);
-    addField(restartApache);
-    
-    addField(externalParser);
-    
-    addField(chooseParser);
-    addField(parseOnSave);
-    addField(outlineShowClass) ;
-    addField(outlineShowFunc);
-    addField(outlineShowVar);
-  }
-
-  /**
-   * @see IWorkbenchPreferencePage#init
-   */
-  public void init(IWorkbench workbench) {
-  }
-
-}