X-Git-Url: http://hudson.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpeclipse/externaltools/ExternalToolsPlugin.java b/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpeclipse/externaltools/ExternalToolsPlugin.java index 0a2219a..c392571 100644 --- a/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpeclipse/externaltools/ExternalToolsPlugin.java +++ b/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpeclipse/externaltools/ExternalToolsPlugin.java @@ -25,7 +25,6 @@ import net.sourceforge.phpdt.externaltools.internal.registry.RefreshScopeVariabl import net.sourceforge.phpdt.externaltools.model.IExternalToolConstants; import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPluginDescriptor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.Platform; @@ -69,6 +68,9 @@ public final class ExternalToolsPlugin extends AbstractUIPlugin { public static final String APACHE_RESTART_PREF = "__apache_restart"; + public static final String HTTPD_CONF_PATH_PREF = "__httpd_conf_path"; + + public static final String ETC_HOSTS_PATH_PREF = "__etc_hosts_path"; // public static final String SHOW_OUTPUT_IN_CONSOLE = "_show_output_in_console"; public static final String PHP_RUN_PREF = "_php_run_pref"; @@ -158,7 +160,7 @@ public final class ExternalToolsPlugin extends AbstractUIPlugin { /** * Writes the message to the plug-in's log - * + * * @param message * the text to write to the log */ @@ -174,7 +176,7 @@ public final class ExternalToolsPlugin extends AbstractUIPlugin { /** * Returns the ImageDescriptor for the icon with the given path - * + * * @return the ImageDescriptor object */ public ImageDescriptor getImageDescriptor(String path) { @@ -198,10 +200,10 @@ public final class ExternalToolsPlugin extends AbstractUIPlugin { try { InputStream is = getDefault().openStream(new Path("prefs/default_" + operatingSystem + ".properties")); PropertyResourceBundle resourceBundle = new PropertyResourceBundle(is); - Enumeration enum = resourceBundle.getKeys(); + Enumeration e = resourceBundle.getKeys(); String key; - while (enum.hasMoreElements()) { - key = (String) enum.nextElement(); + while (e.hasMoreElements()) { + key = (String) e.nextElement(); store.setDefault(key, resourceBundle.getString(key)); } } catch (Exception e) { @@ -213,6 +215,7 @@ public final class ExternalToolsPlugin extends AbstractUIPlugin { store.setDefault(APACHE_RUN_PREF, "c:\\apache\\apache.exe"); store.setDefault(XAMPP_START_PREF, "c:\\xampp\\xampp_start.exe"); store.setDefault(XAMPP_STOP_PREF, "c:\\xampp\\xampp_stop.exe"); + store.setDefault(ETC_HOSTS_PATH_PREF, "c:\\windows\\system32\\drivers\\etc\\hosts"); } else { store.setDefault(PHP_RUN_PREF, "/apache/php/php"); store.setDefault(EXTERNAL_PARSER_PREF, "/apache/php/php -l -f {0}");