1 package net.sourceforge.phpdt.externaltools.variable;
3 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
5 import org.eclipse.core.resources.IFile;
8 * Expands a variable into the last opened PHP file
10 * This class is not intended to be extended by clients.
13 public class LastPHPFileExpander implements IVariableTextExpander {
15 public String getText(String varTag, String varValue, ExpandVariableContext context) {
16 IFile file = PHPeclipsePlugin.getDefault().getLastEditorFile();
17 String fileLocation ="";
19 fileLocation = file.getLocation().toString();