Bug 4139 EC DCR: Code templates feature (1GIVMDV)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/ArgumentEvaluator.java
public ArgumentEvaluator(String[] arguments) {
		fArguments= arguments;
	}
	/*
	 * @see VariableEvaluator#evaluate(String, int)
	 */
	public String evaluate(String variable, int offset) {
		if (fArguments == null)
			return null;
		
		try {
			int i= Integer.parseInt(variable);
			
			if ((i < 0) || (i >= fArguments.length))
				return null;
				
			return new String(fArguments[i]);
		
		} catch (NumberFormatException e) {
			return null;
		}	
	}
	/*
	 * @see VariableEvaluator#getRecognizedVariables()
	 */
	public String[] getRecognizedVariables() {
		return new String[] {"0", "1"};  
	}
}