public class ContributionContextTypeRegistry extends ContextTypeRegistry
ContextTypes can be added either directly using
ContextTypeRegistry.addContextType(TemplateContextType) or by instantiating and adding a
contributed context type using addContextType(String).| Constructor and Description |
|---|
ContributionContextTypeRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addContextType(String id)
Tries to create a context type given an id.
|
static TemplateContextType |
createContextType(String id)
Tries to create a context type given an id.
|
addContextType, contextTypes, getContextTypepublic void addContextType(String id)
org.eclipse.ui.editors.templates
extension point are searched for the given identifier and the specified
context type instantiated if it is found.id - the id for the context type as specified in XMLpublic static TemplateContextType createContextType(String id)
org.eclipse.ui.editors.templates extension point are
searched for the given identifier and the specified context type
instantiated if it is found. Any contributed
TemplateVariableResolvers
are also instantiated and added to the context type.id - the id for the context type as specified in XMLnull if it is not found or cannot be instantiatedGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.