Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcbateman2009-08-19 18:23:55 +0000
committercbateman2009-08-19 18:23:55 +0000
commit5a4ac109c1b27b582552a2ace245ad768d07e751 (patch)
tree1c120bbe05024241c709ecdc92e6e9e882806af2
parentee75a0c5f06686a8ad4a9c0c9bb7174123100243 (diff)
downloadwebtools.jsf-5a4ac109c1b27b582552a2ace245ad768d07e751.tar.gz
webtools.jsf-5a4ac109c1b27b582552a2ace245ad768d07e751.tar.xz
webtools.jsf-5a4ac109c1b27b582552a2ace245ad768d07e751.zip
Fix CachingSymbolContextResolver so it is a proper decorator.
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/designtime/resolver/CachingSymbolContextResolver.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/designtime/resolver/CachingSymbolContextResolver.java b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/designtime/resolver/CachingSymbolContextResolver.java
index 200b144a0..787dd5769 100644
--- a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/designtime/resolver/CachingSymbolContextResolver.java
+++ b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/designtime/resolver/CachingSymbolContextResolver.java
@@ -41,7 +41,7 @@ public final class CachingSymbolContextResolver extends AbstractSymbolContextRes
private final static IMethodSymbol METHOD_SYMBOL_NOT_FOUND =
SymbolFactory.eINSTANCE.createIMethodSymbol();
- private final SymbolContextResolver _delegate;
+ private final ISymbolContextResolver _delegate;
private final Map<String, ISymbol> _variablesByName = new HashMap<String, ISymbol>();
private ISymbol[] _allVariables;
@@ -62,6 +62,14 @@ public final class CachingSymbolContextResolver extends AbstractSymbolContextRes
_delegate = new SymbolContextResolver(context);
}
+ /**
+ * @param delegate
+ */
+ public CachingSymbolContextResolver(final ISymbolContextResolver delegate)
+ {
+ _delegate = delegate;
+ }
+
@Override
public boolean canResolveContext(final IModelContext modelContext)
{

Back to the top