|
|
|
|
|
Re: [EMFForms 1.9] Problem Creating an Editable Form [message #1739439 is a reply to message #1739413] |
Mon, 01 August 2016 12:46 |
Peter Hermsdorf Messages: 45 Registered: August 2011 |
Member |
|
|
I upgraded to emfforms 1.9
to avoid "the sub package" problem, i moved the corresponding eclass definition to an own .ecore file (see attached .model, .genmodel and view model).
The view model is (for now) just the default generated one - the preview shows something. If i could get the same in my application that would be a start
additionally i added the following bundles to my launch config:
org.eclipse.emfforms.swt.table
org.eclipse.emf.ecp.view.table.ui.swt
org.eclipse.emfforms.core.services.structuralchange
org.eclipse.emfforms.core.services.structuralchange.default
org.eclipse.emfforms.core.services.structuralchange.table
org.eclipse.emfforms.core.services.domainexpander.default
org.eclipse.emfforms.core.services.domainexpander.table
org.eclipse.emfforms.core.services.mappingprovider.default
org.eclipse.emfforms.core.services.mappingprovider.table
When trying to render the form the following log messages appear in the console:
!ENTRY org.eclipse.emf.ecp.view.model 4 0 2016-08-01 14:19:05.099
!MESSAGE No view service of type 'org.eclipse.emfforms.spi.swt.core.di.EMFFormsContextProvider' found.
14:19:05.099 ERROR [model] No view service of type 'org.eclipse.emfforms.spi.swt.core.di.EMFFormsContextProvider' found.
!ENTRY org.eclipse.emf.ecp.view.model 4 0 2016-08-01 14:19:05.100
!MESSAGE The given ViewModelContext does not have a EMFFormsContextProvider. Hence, no renderer instance can be created.
14:19:05.100 ERROR [model] The given ViewModelContext does not have a EMFFormsContextProvider. Hence, no renderer instance can be created.
I debugged the form creation process, the error messages comes from:
EMFFormsDIRendererFactory
final AbstractSWTRenderer<VElement> rendererInstance = bestService.getRendererInstance(vElement,
viewModelContext);
-> resolve to
EMFFormsDIRendererFactory.getRendererInstance
which exit's at
final EMFFormsContextProvider contextProvider = viewModelContext.getService(EMFFormsContextProvider.class);
if (contextProvider == null) {
reportService
.report(new AbstractReport(
"The given ViewModelContext does not have a EMFFormsContextProvider. Hence, no renderer instance can be created.")); //$NON-NLS-1$
return null;
}
I wasn't able to understand, why there is no contextProvider available.
Any suggestions and hints are more than welcome!
thx, bye Peter
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03948 seconds