Refactory: removed unnecessary local variables and imports.
[phpeclipse.git] / net.sourceforge.phpeclipse.externaltools / src / net / sourceforge / phpdt / externaltools / variable / LocalhostExpander.java
1 package net.sourceforge.phpdt.externaltools.variable;
2
3 import net.sourceforge.phpeclipse.ui.WebUI;
4
5 import org.eclipse.jface.preference.IPreferenceStore;
6
7 /**
8  * Expands a variable into the predefined localhost.
9  * <p>
10  * This class is not intended to be extended by clients.
11  * </p>
12  */
13 public class LocalhostExpander implements IVariableTextExpander {
14
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);
20         }
21
22 }