use of org.eclipse.jface.text.templates.ContextTypeRegistry in project egit by eclipse.
the class Activator method registerTemplateVariableResolvers.
private void registerTemplateVariableResolvers() {
if (hasJavaPlugin()) {
final ContextTypeRegistry codeTemplateContextRegistry = JavaPlugin.getDefault().getCodeTemplateContextRegistry();
final Iterator<?> ctIter = codeTemplateContextRegistry.contextTypes();
while (ctIter.hasNext()) {
final TemplateContextType contextType = (TemplateContextType) ctIter.next();
contextType.addResolver(new GitTemplateVariableResolver(// $NON-NLS-1$
"git_config", UIText.GitTemplateVariableResolver_GitConfigDescription));
}
}
}
use of org.eclipse.jface.text.templates.ContextTypeRegistry in project webtools.sourceediting by eclipse.
the class HTMLTemplateCompletionProcessor method getContextType.
protected TemplateContextType getContextType(ITextViewer viewer, IRegion region) {
TemplateContextType type = null;
ContextTypeRegistry registry = getTemplateContextRegistry();
if (registry != null)
type = registry.getContextType(fContextTypeId);
return type;
}
use of org.eclipse.jface.text.templates.ContextTypeRegistry in project webtools.sourceediting by eclipse.
the class CSSTemplateCompletionProcessor method getContextType.
protected TemplateContextType getContextType(ITextViewer viewer, IRegion region) {
TemplateContextType type = null;
ContextTypeRegistry registry = getTemplateContextRegistry();
if (registry != null)
type = registry.getContextType(fContextTypeId);
return type;
}
use of org.eclipse.jface.text.templates.ContextTypeRegistry in project webtools.sourceediting by eclipse.
the class JSPTemplateCompletionProcessor method getContextType.
protected TemplateContextType getContextType(ITextViewer viewer, IRegion region) {
TemplateContextType type = null;
ContextTypeRegistry registry = getTemplateContextRegistry();
if (registry != null)
type = registry.getContextType(fContextTypeId);
return type;
}
use of org.eclipse.jface.text.templates.ContextTypeRegistry in project webtools.sourceediting by eclipse.
the class XSLTemplateCompletionProcessor method getContextType.
@Override
protected TemplateContextType getContextType(ITextViewer viewer, IRegion region) {
TemplateContextType type = null;
ContextTypeRegistry registry = getTemplateContextRegistry();
if (registry != null) {
type = registry.getContextType(fContextTypeId);
}
return type;
}
Aggregations