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.
A 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.templates
extension point, use a ContributionContextTypeRegistry
.
- Since:
- 3.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addContextType
(TemplateContextType contextType) Deprecated.Adds a context type to the registry.Deprecated.Returns an iterator over all registered context types.getContextType
(String id) Deprecated.Returns the context type if the id is valid,null
otherwise.
-
Constructor Details
-
ContextTypeRegistry
public ContextTypeRegistry()Deprecated.
-
-
Method Details
-
addContextType
Deprecated.Description copied from class:ContextTypeRegistry
Adds a context type to the registry. If there already is a context type with the same ID registered, it is replaced.- Overrides:
addContextType
in classContextTypeRegistry
- Parameters:
contextType
- the context type to add
-
getContextType
Deprecated.Description copied from class:ContextTypeRegistry
Returns the context type if the id is valid,null
otherwise.- Overrides:
getContextType
in classContextTypeRegistry
- Parameters:
id
- the id of the context type to retrieve- Returns:
- the context type if
name
is valid,null
otherwise
-
contextTypes
Deprecated.Description copied from class:ContextTypeRegistry
Returns an iterator over all registered context types.- Overrides:
contextTypes
in classContextTypeRegistry
- Returns:
- an iterator over all registered context types
-
ContextTypeRegistry