|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.text.templates.ContextTypeRegistry
org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry
A registry for context types. Editor implementors will usually instantiate a
registry and configure the context types available in their editor.
ContextType
s can be added either directly using
ContextTypeRegistry.addContextType(TemplateContextType)
or by instantiating and adding a
contributed context type using addContextType(String)
.
Constructor Summary | |
---|---|
ContributionContextTypeRegistry()
|
Method Summary | |
---|---|
void |
addContextType(String id)
Tries to create a context type given an id. |
static TemplateContextType |
createContextType(String id)
Tries to create a context type given an id. |
Methods inherited from class org.eclipse.jface.text.templates.ContextTypeRegistry |
---|
addContextType, contextTypes, getContextType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContributionContextTypeRegistry()
Method Detail |
public void addContextType(String id)
org.eclipse.ui.editors.templates
extension point are searched for the given identifier and the specified
context type instantiated if it is found.
id
- the id for the context type as specified in XMLpublic static TemplateContextType createContextType(String id)
org.eclipse.ui.editors.templates
extension point are
searched for the given identifier and the specified context type
instantiated if it is found. Any contributed
TemplateVariableResolver
s
are also instantiated and added to the context type.
id
- the id for the context type as specified in XML
null
if it is not found or cannot be instantiated
|
Eclipse Platform Release 3.1 |
|||||||||||
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, 2005. All rights reserved.