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