X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/variable/FileExpander.java b/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/variable/FileExpander.java index 17779cb..2313ea4 100644 --- a/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/variable/FileExpander.java +++ b/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/variable/FileExpander.java @@ -3,32 +3,35 @@ package net.sourceforge.phpdt.externaltools.variable; import org.eclipse.core.runtime.IPath; /** - * Expands a variable into the last opened PHP file + * Expands a variable into the last opened PHP file *
* This class is not intended to be extended by clients. *
*/ -public class FileExpander extends ResourceExpander { //implements IVariableTextExpander { +public class FileExpander extends ResourceExpander { // implements + // IVariableTextExpander + // { - /** - * Create an instance - */ - public FileExpander() { - super(); - } + /** + * Create an instance + */ + public FileExpander() { + super(); + } - /** - * Returns a string representation of the path to a file or directory - * for the given variable tag and value ornull
.
- *
- * @see IVariableTextExpander#getText(String, String, ExpandVariableContext)
- */
- public String getText(String varTag, String varValue, ExpandVariableContext context) {
- IPath path = getPath(varTag, varValue, context);
- if (path != null) {
- return path.toString();
- }
- return "null
.
+ *
+ * @see IVariableTextExpander#getText(String, String, ExpandVariableContext)
+ */
+ public String getText(String varTag, String varValue,
+ ExpandVariableContext context) {
+ IPath path = getPath(varTag, varValue, context);
+ if (path != null) {
+ return path.toString();
+ }
+ return "