1 package net.sourceforge.phpdt.externaltools.variable;
3 import net.sourceforge.phpeclipse.ui.WebUI;
5 import org.eclipse.jface.preference.IPreferenceStore;
8 * Expands a variable into the predefined localhost.
10 * This class is not intended to be extended by clients.
13 public class LocalhostExpander implements IVariableTextExpander {
15 public String getText(String varTag, String varValue, ExpandVariableContext context) {
16 final IPreferenceStore webUIStore = WebUI.getDefault().getPreferenceStore();
17 return webUIStore.getString(WebUI.PHP_LOCALHOST_PREF);