From: stefanbjarni Date: Fri, 29 Jul 2005 22:08:11 +0000 (+0000) Subject: Added UI elements for the etc/hosts and httpd.conf preference settings. X-Git-Url: http://secure.phpeclipse.com Added UI elements for the etc/hosts and httpd.conf preference settings. --- diff --git a/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/preferences/PHPExternalToolsPreferencePage.java b/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/preferences/PHPExternalToolsPreferencePage.java index 63179ef..91d3c15 100644 --- a/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/preferences/PHPExternalToolsPreferencePage.java +++ b/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/preferences/PHPExternalToolsPreferencePage.java @@ -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);