package net.sourceforge.phpdt.externaltools.variable;
-import net.sourceforge.phpeclipse.PHPeclipsePlugin;
import net.sourceforge.phpeclipse.ui.WebUI;
import org.eclipse.jface.preference.IPreferenceStore;
public class LocalhostExpander implements IVariableTextExpander {
public String getText(String varTag, String varValue, ExpandVariableContext context) {
- IPreferenceStore store = PHPeclipsePlugin.getDefault().getPreferenceStore();
- return store.getString(WebUI.PHP_LOCALHOST_PREF);
+ final IPreferenceStore webUIStore = WebUI.getDefault().getPreferenceStore();
+ return webUIStore.getString(WebUI.PHP_LOCALHOST_PREF);
}
}