private Map<String, ISymbol> getRequestScopeSymbols(final IFile file)
{
final Map<String, ISymbol> requestSymbols = new HashMap<String, ISymbol>();
ISymbol symbol = createScopeSymbol(file,
ISymbolConstants.SYMBOL_SCOPE_REQUEST, REQUEST_SCOPE);
requestSymbols.put(symbol.getName(), symbol);
requestSymbols.put(SYMBOL_COOKIE_IMPLICIT_OBJ.getName(), SYMBOL_COOKIE_IMPLICIT_OBJ);
requestSymbols.put(SYMBOL_HEADER_IMPLICIT_OBJ.getName(), SYMBOL_HEADER_IMPLICIT_OBJ);
requestSymbols.put(SYMBOL_HEADER_VALUES_IMPLICIT_OBJ.getName(), SYMBOL_HEADER_VALUES_IMPLICIT_OBJ);
requestSymbols.put(SYMBOL_PARAM_IMPLICIT_OBJ.getName(), SYMBOL_PARAM_IMPLICIT_OBJ);
requestSymbols.put(SYMBOL_PARAM_VALUES_IMPLICIT_OBJ.getName(), SYMBOL_PARAM_VALUES_IMPLICIT_OBJ);
// TODO: these aren't maps; need to find way to handle
symbol = _symbolFactory.createBeanOrUnknownInstanceSymbol(file
.getProject(), FACES_CONTEXT_FULLY_QUALIFIED_CLASS,
FACES_CONTEXT_IMPLICIT_OBJ,
ERuntimeSource.BUILT_IN_SYMBOL_LITERAL);
requestSymbols.put(symbol.getName(), symbol);
symbol = _symbolFactory.createBeanOrUnknownInstanceSymbol(file
.getProject(), VIEW_FULLY_QUALIFIED_CLASS, VIEW_IMPLICIT_OBJ,
ERuntimeSource.BUILT_IN_SYMBOL_LITERAL);
requestSymbols.put(symbol.getName(), symbol);
//add jsf2.0 implicits
if (JSFVersion.valueOfProject(file.getProject()).compareTo(JSFVersion.V2_0) >=0) {
symbol = _symbolFactory.createBeanOrUnknownInstanceSymbol(file
.getProject(), UICOMPONENT_FULLY_QUALIFIED_CLASS,
CC_IMPLICIT_OBJ,
ERuntimeSource.BUILT_IN_SYMBOL_LITERAL);
requestSymbols.put(symbol.getName(), symbol);
// _symbolFactory.createJavaComponentSymbol(CC_IMPLICIT_OBJ, typeDesc, ""); //$NON-NLS-1$
symbol = _symbolFactory.createBeanOrUnknownInstanceSymbol(file
.getProject(), UICOMPONENT_FULLY_QUALIFIED_CLASS,
COMPONENT_IMPLICIT_OBJ,
ERuntimeSource.BUILT_IN_SYMBOL_LITERAL);
requestSymbols.put(symbol.getName(), symbol);
}
return Collections.unmodifiableMap(requestSymbols);
}