use of com.liferay.ide.portlet.vaadin.core.operation.NewVaadinPortletClassDataModelProvider in project liferay-ide by liferay.
the class NewVaadinPortletWizard method getDefaultProvider.
@Override
protected IDataModelProvider getDefaultProvider() {
// for now, no need for own template store and context type
TemplateStore templateStore = PortletUIPlugin.getDefault().getTemplateStore();
ContextTypeRegistry contextTypeRegistry = PortletUIPlugin.getDefault().getTemplateContextRegistry();
TemplateContextType contextType = contextTypeRegistry.getContextType(PortletTemplateContextTypeIds.NEW);
return new NewVaadinPortletClassDataModelProvider(fragment) {
@Override
public IDataModelOperation getDefaultOperation() {
return new AddVaadinApplicationOperation(model, templateStore, contextType);
}
};
}
Aggregations