1 package net.sourceforge.phpdt.externaltools.variable;
3 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
4 import net.sourceforge.phpeclipse.ui.WebUI;
6 import org.eclipse.jface.preference.IPreferenceStore;
9 * Expands a variable into the predefined localhost.
11 * This class is not intended to be extended by clients.
14 public class LocalhostExpander implements IVariableTextExpander {
16 public String getText(String varTag, String varValue, ExpandVariableContext context) {
17 IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
18 return store.getString(WebUI.PHP_LOCALHOST_PREF);