|Re: EMF Forms: How to disable the add button for references field [message #1755602 is a reply to message #1755477]
||Mon, 06 March 2017 09:38
| Eugen Neufeld
Registered: May 2015
Hi Jim, |
you have to provide a custom renderer for this.
So you have to subclass org.eclipse.emf.ecp.view.internal.control.multireference.MultiReferenceSWTRenderer.MultiReferenceSWTRenderer(VControl, ViewModelContext, ReportService, EMFFormsDatabinding, EMFFormsLabelProvider, VTViewTemplateProvider, ImageRegistryService) and here you can overwrite eg org.eclipse.emf.ecp.view.internal.control.multireference.MultiReferenceSWTRenderer.showAddNewButton() .
You will also need the service which registers the control, check this blog post for this:http://eclipsesource.com/blogs/tutorials/how-to-customize-emf-forms/#customizecontrols
Get professional Eclipse developer support:
Powered by FUDForum
. Page generated in 0.02346 seconds