Search in sources :

Example 21 with ContributionContextTypeRegistry

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;
}
Also used : ContributionContextTypeRegistry(org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry)

Example 22 with ContributionContextTypeRegistry

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;
}
Also used : ContributionContextTypeRegistry(org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry)

Example 23 with ContributionContextTypeRegistry

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;
}
Also used : ContributionContextTypeRegistry(org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry)

Aggregations

ContributionContextTypeRegistry (org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry)23 KaleoTemplateContext (com.liferay.ide.kaleo.ui.xml.KaleoTemplateContext)1 StructuresTemplateContext (com.liferay.ide.portal.ui.templates.StructuresTemplateContext)1 AbstractJavaContextType (org.eclipse.jdt.internal.corext.template.java.AbstractJavaContextType)1 CodeTemplateContextType (org.eclipse.jdt.internal.corext.template.java.CodeTemplateContextType)1 ContextTypeRegistry (org.eclipse.jface.text.templates.ContextTypeRegistry)1 TemplateContextType (org.eclipse.jface.text.templates.TemplateContextType)1