use of com.liferay.ide.ui.templates.ServiceClassNameResolver in project liferay-ide by liferay.
the class LiferayUIPlugin method _registerResolvers.
private void _registerResolvers() {
ContextTypeRegistry templateContextRegistry = JavaPlugin.getDefault().getTemplateContextRegistry();
Iterator<?> ctIter = templateContextRegistry.contextTypes();
while (ctIter.hasNext()) {
Object next = ctIter.next();
if (next instanceof TemplateContextType) {
TemplateContextType contextType = (TemplateContextType) next;
if (contextType.getId().equals("java")) {
contextType.addResolver(new ServiceClassNameResolver());
}
}
}
}
Aggregations