X-Git-Url: http://git.phpeclipse.com
diff --git a/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/variable/IVariableResourceExpander.java b/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/variable/IVariableResourceExpander.java
new file mode 100644
index 0000000..a1aac20
--- /dev/null
+++ b/net.sourceforge.phpeclipse.externaltools/src/net/sourceforge/phpdt/externaltools/variable/IVariableResourceExpander.java
@@ -0,0 +1,38 @@
+package net.sourceforge.phpdt.externaltools.variable;
+
+/**********************************************************************
+Copyright (c) 2002 IBM Corp. and others. All rights reserved.
+This file is made available under the terms of the Common Public License v1.0
+which accompanies this distribution, and is available at
+http://www.eclipse.org/legal/cpl-v10.html
+
+Contributors:
+**********************************************************************/
+
+import org.eclipse.core.resources.IResource;
+
+/**
+ * Responsible for expanding a variable into a list of
+ * IResource
.
+ *
+ * Implementation of this interface will be treated like + * a singleton. That is, only one instance will be created + * per variable extension. + *
+ * This interface is not to be extended by clients. Clients + * may implement this interface. + *
+ */ +public interface IVariableResourceExpander { + /** + * Returns theIResource
list
+ * for the given variable tag and value.
+ *
+ * @param varTag the variable tag name
+ * @param varValue the value for the variable
+ * @param context the context the variable should use to expand itself
+ * @return the list of IResource
or null
if not
+ * possible (note, elements of the list can be null
)
+ */
+ public IResource[] getResources(String varTag, String varValue, ExpandVariableContext context);
+}