1 package net.sourceforge.phpdt.externaltools.variable;
3 /**********************************************************************
4 Copyright (c) 2002 IBM Corp. and others. All rights reserved.
5 This file is made available under the terms of the Common Public License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/legal/cpl-v10.html
10 **********************************************************************/
12 import org.eclipse.core.resources.IResource;
15 * Responsible for expanding a variable into a list of <code>IResource</code>.
17 * Implementation of this interface will be treated like a singleton. That is,
18 * only one instance will be created per variable extension.
21 * This interface is not to be extended by clients. Clients may implement this
25 public interface IVariableResourceExpander {
27 * Returns the <code>IResource</code> list for the given variable tag and
31 * the variable tag name
33 * the value for the variable
35 * the context the variable should use to expand itself
36 * @return the list of <code>IResource</code> or <code>null</code> if
37 * not possible (note, elements of the list can be <code>null</code>)
39 public IResource[] getResources(String varTag, String varValue,
40 ExpandVariableContext context);