imporved php parser
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / PHPEclipsePreferencePage.java
index b0c494c..065a53d 100644 (file)
@@ -25,57 +25,58 @@ import org.eclipse.ui.IWorkbenchPreferencePage;
  */
 public class PHPEclipsePreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
 
-       public PHPEclipsePreferencePage() {
-               super(FieldEditorPreferencePage.GRID);
-               //Initialize the preference store we wish to use
-               setPreferenceStore(PHPeclipsePlugin.getDefault().getPreferenceStore());
-       }
+  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();
+  protected void createFieldEditors() {
+    final IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
 
-               StringFieldEditor localhost = new StringFieldEditor(PHPeclipsePlugin.LOCALHOST_PREF, "&Localhost:", 60, getFieldEditorParent());
+    StringFieldEditor localhost = new StringFieldEditor(PHPeclipsePlugin.LOCALHOST_PREF, "&Localhost:", 60, getFieldEditorParent());
 
-               DirectoryFieldEditor documentRoot =
-                       new DirectoryFieldEditor(PHPeclipsePlugin.DOCUMENTROOT_PREF, "&DocumentRoot:", getFieldEditorParent());
+    DirectoryFieldEditor documentRoot =
+      new DirectoryFieldEditor(PHPeclipsePlugin.DOCUMENTROOT_PREF, "&DocumentRoot:", getFieldEditorParent());
 
-               BooleanFieldEditor useExternalBrowser =
-                       new BooleanFieldEditor(PHPeclipsePlugin.USE_EXTERNAL_BROWSER_PREF, "&Use External Browser", 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 externalBrowser =
+      new StringFieldEditor(PHPeclipsePlugin.EXTERNAL_BROWSER_PREF, "&External Browser command:", 60, getFieldEditorParent());
 
-               StringFieldEditor startMySQL =
-                       new StringFieldEditor(PHPeclipsePlugin.MYSQL_PREF, "&MySQL 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 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 stopApache = 
-                       new StringFieldEditor(PHPeclipsePlugin.APACHE_STOP_PREF, "&Stop Apache command:", 60, getFieldEditorParent());
+    StringFieldEditor externalParser =
+      new StringFieldEditor(PHPeclipsePlugin.EXTERNAL_PARSER_PREF, "&External Parser command:", 60, getFieldEditorParent());
 
-    
-               StringFieldEditor restartApache =
-                       new StringFieldEditor(PHPeclipsePlugin.APACHE_RESTART_PREF, "&Restart Apache command:", 60, getFieldEditorParent());
+    addField(localhost);
+    addField(documentRoot);
+    addField(useExternalBrowser);
+    addField(externalBrowser);
+    addField(startMySQL);
+    addField(startApache);
 
+    addField(stopApache);
+    addField(restartApache);
     
-               addField(localhost);
-               addField(documentRoot);
-               addField(useExternalBrowser);
-               addField(externalBrowser);
-               addField(startMySQL);
-               addField(startApache);
-
-               addField(stopApache);
-               addField(restartApache);
-       }
-
-       /**
-        * @see IWorkbenchPreferencePage#init
-        */
-       public void init(IWorkbench workbench) {
-       }
+    addField(externalParser);
+  }
+
+  /**
+   * @see IWorkbenchPreferencePage#init
+   */
+  public void init(IWorkbench workbench) {
+  }
 
 }