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,
16 ExpandVariableContext context) {
17 final IPreferenceStore webUIStore = WebUI.getDefault()
18 .getPreferenceStore();
19 return webUIStore.getString(WebUI.PHP_LOCALHOST_PREF);