X-Git-Url: http://git.phpeclipse.com

diff --git a/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/variable/LocalhostExpander.java b/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/variable/LocalhostExpander.java
index 9cf0788..b4883d6 100644
--- a/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/variable/LocalhostExpander.java
+++ b/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/variable/LocalhostExpander.java
@@ -1,6 +1,5 @@
 package net.sourceforge.phpdt.externaltools.variable;
 
-import net.sourceforge.phpeclipse.externaltools.ExternalToolsPlugin;
 import net.sourceforge.phpeclipse.ui.WebUI;
 
 import org.eclipse.jface.preference.IPreferenceStore;
@@ -13,9 +12,11 @@ import org.eclipse.jface.preference.IPreferenceStore;
  */
 public class LocalhostExpander implements IVariableTextExpander {
 
-  public String getText(String varTag, String varValue, ExpandVariableContext context) {
-    IPreferenceStore store = ExternalToolsPlugin.getDefault().getPreferenceStore(); 
-    return store.getString(WebUI.PHP_LOCALHOST_PREF);
-  }
+	public String getText(String varTag, String varValue,
+			ExpandVariableContext context) {
+		final IPreferenceStore webUIStore = WebUI.getDefault()
+				.getPreferenceStore();
+		return webUIStore.getString(WebUI.PHP_LOCALHOST_PREF);
+	}
 
 }