Search in sources :

Example 1 with KaleoTemplateContext

use of com.liferay.ide.kaleo.ui.xml.KaleoTemplateContext in project liferay-ide by liferay.

the class KaleoUI method getTemplateContextRegistry.

public ContextTypeRegistry getTemplateContextRegistry() {
    if (_contextTypeRegistry == null) {
        ContributionContextTypeRegistry registry = new ContributionContextTypeRegistry();
        for (KaleoTemplateContext contextType : KaleoTemplateContext.values()) {
            registry.addContextType(contextType.getContextTypeId());
        }
        _contextTypeRegistry = registry;
    }
    return _contextTypeRegistry;
}
Also used : ContributionContextTypeRegistry(org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry) KaleoTemplateContext(com.liferay.ide.kaleo.ui.xml.KaleoTemplateContext)

Aggregations

KaleoTemplateContext (com.liferay.ide.kaleo.ui.xml.KaleoTemplateContext)1 ContributionContextTypeRegistry (org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry)1