public class ContextTypeRegistry extends Object
In order to pick up templates contributed using the org.eclipse.ui.editors.templates
extension point, use a ContributionContextTypeRegistry
.
Constructor and Description |
---|
ContextTypeRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addContextType(TemplateContextType contextType)
Adds a context type to the registry.
|
Iterator |
contextTypes()
Returns an iterator over all registered context types.
|
TemplateContextType |
getContextType(String id)
Returns the context type if the id is valid,
null otherwise. |
public void addContextType(TemplateContextType contextType)
contextType
- the context type to addpublic TemplateContextType getContextType(String id)
null
otherwise.id
- the id of the context type to retrievename
is valid, null
otherwisepublic Iterator contextTypes()
TemplateContextType
)
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.