Package | Description |
---|---|
org.eclipse.jface.text.templates |
Application programming interfaces for interaction
with the Eclipse Java User Interface text support.
|
org.eclipse.ui.editors.text.templates |
Application programming interfaces for interaction
with the Eclipse Java User Interface text 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.
|
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.