use of org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry in project liferay-ide by liferay.
the class PortletUIPlugin method getTemplateContextRegistry.
public ContextTypeRegistry getTemplateContextRegistry() {
if (_fContextTypeRegistry == null) {
ContributionContextTypeRegistry registry = new ContributionContextTypeRegistry();
registry.addContextType(PortletTemplateContextTypeIds.NEW);
registry.addContextType(JSFPortletTemplateContextTypeIds.NEW);
_fContextTypeRegistry = registry;
}
return _fContextTypeRegistry;
}
use of org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry in project syncope by apache.
the class HTMLTemplateManager method getContextTypeRegistry.
public ContextTypeRegistry getContextTypeRegistry() {
if (fRegistry == null) {
fRegistry = new ContributionContextTypeRegistry();
fRegistry.addContextType(HTMLContextType.CONTEXT_TYPE);
}
return fRegistry;
}
use of org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry in project flux by eclipse.
the class JavaPlugin method getCodeTemplateContextRegistry.
public ContextTypeRegistry getCodeTemplateContextRegistry() {
if (fCodeTemplateContextTypeRegistry == null) {
fCodeTemplateContextTypeRegistry = new ContributionContextTypeRegistry();
CodeTemplateContextType.registerContextTypes(fCodeTemplateContextTypeRegistry);
}
return fCodeTemplateContextTypeRegistry;
}
Aggregations