|
Re: [EMF Forms] Remove Create and Link Button on Table Control [message #1747501 is a reply to message #1747261] |
Tue, 15 November 2016 13:59 |
Eugen Neufeld Messages: 174 Registered: May 2015 |
Senior Member |
|
|
Hi Vikash,
you have two possibilities.
You can either subclass the table or you can provide your own referenceservice which behaves as you want.
You must override the org.eclipse.emf.ecp.view.spi.table.swt.TableControlService#createNewElement(EClass, EObject, EStructuralFeature) for customizing the the creation of new model elements.
On how to register your reference service take a look at org.eclipse.emf.ecp.ui.view.swt.DefaultReferenceService and org.eclipse.emf.ecp.ui.view.swt.DefaultReferenceServiceFactory .
Cheers,
Eugen
--
Eugen Neufeld
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
|
|
|
Powered by
FUDForum. Page generated in 0.02911 seconds