1 package net.sourceforge.phpdt.externaltools.variable;
3 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
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 IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
17 return store.getString(PHPeclipsePlugin.PHP_LOCALHOST_PREF);