package net.sourceforge.phpdt.externaltools.variable; import net.sourceforge.phpeclipse.PHPeclipsePlugin; import org.eclipse.jface.preference.IPreferenceStore; /** * Expands a variable into the predefined localhost. *
* This class is not intended to be extended by clients. *
*/ public class LocalhostExpander implements IVariableTextExpander { public String getText(String varTag, String varValue, ExpandVariableContext context) { IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore(); return store.getString(PHPeclipsePlugin.LOCALHOST_PREF); } }