Added UI elements for the etc/hosts and httpd.conf preference settings.
authorstefanbjarni <stefanbjarni>
Fri, 29 Jul 2005 22:08:11 +0000 (22:08 +0000)
committerstefanbjarni <stefanbjarni>
Fri, 29 Jul 2005 22:08:11 +0000 (22:08 +0000)
net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/preferences/PHPExternalToolsPreferencePage.java

index 63179ef..91d3c15 100644 (file)
@@ -39,6 +39,10 @@ public class PHPExternalToolsPreferencePage extends PreferencePage implements IW
 
   FileFieldEditor phpRunFFE;
 
+  FileFieldEditor httpdConfFFE;
+  
+  FileFieldEditor etcHostsFFE;
+
   BooleanFieldEditor apacheStartBFE;
 
   BooleanFieldEditor apacheStopBFE;
@@ -67,6 +71,8 @@ public class PHPExternalToolsPreferencePage extends PreferencePage implements IW
     externalParserSFE.loadDefault();
     phpRunFFE.loadDefault();
     apacheRunFFE.loadDefault();
+    httpdConfFFE.loadDefault();
+    etcHostsFFE.loadDefault();
     mysqlRunFFE.loadDefault();
     apacheStartBFE.loadDefault();
     apacheStopBFE.loadDefault();
@@ -87,6 +93,8 @@ public class PHPExternalToolsPreferencePage extends PreferencePage implements IW
     externalParserSFE.store();
     phpRunFFE.store();
     apacheRunFFE.store();
+    httpdConfFFE.store();
+    etcHostsFFE.store();
     mysqlRunFFE.store();
 
     apacheStartBFE.store();
@@ -176,6 +184,18 @@ public class PHPExternalToolsPreferencePage extends PreferencePage implements IW
     apacheRunFFE.setPreferenceStore(getPreferenceStore());
     apacheRunFFE.load();
 
+    httpdConfFFE = new FileFieldEditor(ExternalToolsPlugin.HTTPD_CONF_PATH_PREF, 
+               "Path to httpd.conf:", apacheSettingsGroup);
+    httpdConfFFE.setPreferencePage(this);
+    httpdConfFFE.setPreferenceStore(getPreferenceStore());
+    httpdConfFFE.load();
+
+    etcHostsFFE = new FileFieldEditor(ExternalToolsPlugin.ETC_HOSTS_PATH_PREF, 
+               "Path to etc/hosts:", apacheSettingsGroup);
+    etcHostsFFE.setPreferencePage(this);
+    etcHostsFFE.setPreferenceStore(getPreferenceStore());
+    etcHostsFFE.load();
+
     phpRunFFE = new FileFieldEditor(ExternalToolsPlugin.PHP_RUN_PREF, PHPPreferencesMessages
         .getString("PHPBasePreferencePage.console.php"), apacheSettingsGroup);
     phpRunFFE.setPreferencePage(this);