|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.jface.text.templates.ContextTypeRegistry
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.
| Constructor Summary | |
|---|---|
ContextTypeRegistry()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContextTypeRegistry()
| Method Detail |
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 retrieve
name is valid, null otherwisepublic Iterator contextTypes()
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.