Using Context Resolvers |
Resolver Type |
Purpose |
ITaglibContextResolver | Resolves taglib information for the current context such as retrieving the tag library information for the current tag. |
IWorkspaceContextResolver | Resolves workspace information for the current document context such as IFile and IProject. |
IDOMContextResolver | Resolves DOM information for the current context such as current element and attribute. |
IMetadataContextResolver | Resolves meta-data framework information for a given context. For example, if the current context resolves to an XML attribute, retrieves meta-data associate with that attribute/element/uri. |
ISymbolContextResolver | Determines what symbols are available or valid within the current context. For example, if context is an EL expression, what bean names are available? |
Factory Name |
What it does |
org.eclipse.jst.jsf.context.structureddocument.IStructuredDocumentContextFactory | Creates new IStructuredDocumentContext objects based on a document and offset. |
org.eclipse.jst.jsf.context.resolver.structureddocument.IStructuredDocumentContextResolverFactory | Creates a new instances of context resolvers for an IStructuredDocumentContext. |
The existing factories can be extended using factory delegates. A delegate for IStructuredDocumentContextFactory allows you to extend the existing factory to create IStructuredDocumentContext's for document contexts other than an IStructuredDocumentContext and offset. Similarly, adding factory delegates to IStructuredDocumentContextResolverFactory allows you to create context resolvers for structured documents other than those already supported.
Factory delegates are added programmatically be calling addFactoryDelegate on the appropriate factory. See the JavaDoc for IDelegatingFactory for more details.