org.eclipse.cdt.managedbuilder.gnu.mingw
Class MingwEnvironmentVariableSupplier

java.lang.Object
  extended by org.eclipse.cdt.managedbuilder.gnu.mingw.MingwEnvironmentVariableSupplier
All Implemented Interfaces:
IConfigurationEnvironmentVariableSupplier

public class MingwEnvironmentVariableSupplier
extends java.lang.Object
implements IConfigurationEnvironmentVariableSupplier

Author:
Doug Schaefer

Constructor Summary
MingwEnvironmentVariableSupplier()
           
 
Method Summary
 IBuildEnvironmentVariable getVariable(java.lang.String variableName, IConfiguration configuration, IEnvironmentVariableProvider provider)
           
 IBuildEnvironmentVariable[] getVariables(IConfiguration configuration, IEnvironmentVariableProvider provider)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MingwEnvironmentVariableSupplier

public MingwEnvironmentVariableSupplier()
Method Detail

getVariable

public IBuildEnvironmentVariable getVariable(java.lang.String variableName,
                                             IConfiguration configuration,
                                             IEnvironmentVariableProvider provider)
Specified by:
getVariable in interface IConfigurationEnvironmentVariableSupplier
Parameters:
variableName - the variable name
configuration - configuration
provider - the instance of the environment variable provider to be used for querying the environment variables from within the supplier. The supplier should use this provider to obtain the already defined environment instead of using the "default" provider returned by the ManagedBuildManager.getEnvironmentVariableProvider(). The provider passed to a supplier will ignore searching the variables for the levels higher than the current supplier level, will query only the lower-precedence suppliers for the current level and will query all suppliers for the lower levels. This is done to avoid infinite loops that could be caused if the supplier calls the provider and the provider in turn calls that supplier again. Also the supplier should not know anything about the environment variables defined for the higher levels.
Returns:
the reference to the IBuildEnvironmentVariable interface representing the variable of a given name

getVariables

public IBuildEnvironmentVariable[] getVariables(IConfiguration configuration,
                                                IEnvironmentVariableProvider provider)
Specified by:
getVariables in interface IConfigurationEnvironmentVariableSupplier
Parameters:
configuration - configuration
provider - the instance of the environment variable provider to be used for querying the environment variables from within the supplier. The supplier should use this provider to obtain the already defined environment instead of using the "default" provider returned by the ManagedBuildManager.getEnvironmentVariableProvider(). The provider passed to a supplier will ignore searching the variables for the levels higher than the current supplier level, will query only the lower-precedence suppliers for the current level and will query all suppliers for the lower levels. This is done to avoid infinite loops that could be caused if the supplier calls the provider and the provider in turn calls that supplier again. Also the supplier should not know anything about the environment variables defined for the higher levels.
Returns:
the array of IBuildEnvironmentVariable that represents the environment variables