1 package net.sourceforge.phpdt.externaltools.variable;
3 import org.eclipse.core.runtime.IPath;
6 * Expands a variable into the last opened PHP file
8 * This class is not intended to be extended by clients.
11 public class LastPHPFileExpander extends ResourceExpander { //implements IVariableTextExpander {
16 public LastPHPFileExpander() {
21 * Returns a string representation of the path to a file or directory
22 * for the given variable tag and value or <code>null</code>.
24 * @see IVariableTextExpander#getText(String, String, ExpandVariableContext)
26 public String getText(String varTag, String varValue, ExpandVariableContext context) {
27 IPath path = getPath(varTag, varValue, context);
29 return path.toString();