Package org.eclipse.jface.text.templates
Class ContextTypeRegistry
- java.lang.Object
-
- org.eclipse.text.templates.ContextTypeRegistry
-
- org.eclipse.jface.text.templates.ContextTypeRegistry
-
- Direct Known Subclasses:
ContributionContextTypeRegistry
@Deprecated public class ContextTypeRegistry extends org.eclipse.text.templates.ContextTypeRegistry
Deprecated.SeeContextTypeRegistryA registry for context types. Editor implementors will usually instantiate a registry and configure the context types available in their editor.In order to pick up templates contributed using the
org.eclipse.ui.editors.templatesextension point, use aContributionContextTypeRegistry.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description ContextTypeRegistry()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddContextType(TemplateContextType contextType)Deprecated.Adds a context type to the registry.Iterator<TemplateContextType>contextTypes()Deprecated.Returns an iterator over all registered context types.TemplateContextTypegetContextType(String id)Deprecated.Returns the context type if the id is valid,nullotherwise.
-
-
-
Method Detail
-
addContextType
public void addContextType(TemplateContextType contextType)
Deprecated.Description copied from class:org.eclipse.text.templates.ContextTypeRegistryAdds a context type to the registry. If there already is a context type with the same ID registered, it is replaced.- Overrides:
addContextTypein classorg.eclipse.text.templates.ContextTypeRegistry- Parameters:
contextType- the context type to add
-
getContextType
public TemplateContextType getContextType(String id)
Deprecated.Description copied from class:org.eclipse.text.templates.ContextTypeRegistryReturns the context type if the id is valid,nullotherwise.- Overrides:
getContextTypein classorg.eclipse.text.templates.ContextTypeRegistry- Parameters:
id- the id of the context type to retrieve- Returns:
- the context type if
nameis valid,nullotherwise
-
contextTypes
public Iterator<TemplateContextType> contextTypes()
Deprecated.Description copied from class:org.eclipse.text.templates.ContextTypeRegistryReturns an iterator over all registered context types.- Overrides:
contextTypesin classorg.eclipse.text.templates.ContextTypeRegistry- Returns:
- an iterator over all registered context types
-
-