Search in sources :

Example 1 with StructuresTemplateContext

use of com.liferay.ide.portal.ui.templates.StructuresTemplateContext in project liferay-ide by liferay.

the class PortalUI method getTemplateContextRegistry.

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

Aggregations

StructuresTemplateContext (com.liferay.ide.portal.ui.templates.StructuresTemplateContext)1 ContributionContextTypeRegistry (org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry)1