Package | Description |
---|---|
org.eclipse.jface.text.templates |
Application programming interfaces for interaction
with the Eclipse text template support.
|
org.eclipse.ui.editors.text.templates |
Application programming interfaces for interaction
with the Eclipse text editor template support.
|
Modifier and Type | Method and Description |
---|---|
TemplateContextType |
TemplateContext.getContextType()
Returns the context type of this context.
|
protected abstract TemplateContextType |
TemplateCompletionProcessor.getContextType(ITextViewer viewer,
IRegion region)
Returns the context type that can handle template insertion at the given region
in the viewer's document.
|
TemplateContextType |
ContextTypeRegistry.getContextType(String id)
Returns the context type if the id is valid,
null otherwise. |
Modifier and Type | Method and Description |
---|---|
void |
ContextTypeRegistry.addContextType(TemplateContextType contextType)
Adds a context type to the registry.
|
Constructor and Description |
---|
DocumentTemplateContext(TemplateContextType type,
IDocument document,
int offset,
int length)
Creates a document template context.
|
DocumentTemplateContext(TemplateContextType type,
IDocument document,
Position position)
Creates a document template context.
|
TemplateContext(TemplateContextType contextType)
Creates a template context of a particular context type.
|
Modifier and Type | Method and Description |
---|---|
static TemplateContextType |
ContributionContextTypeRegistry.createContextType(String id)
Tries to create a context type given an id.
|
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.