|[EMF Forms] EClass from View model cannot be resolved [message #1768596]
||Thu, 20 July 2017 11:47
| Simon Moissl
Registered: July 2017
when I try to render an SWT editor using
my view model is not used.
So I debugged and found, that the method
knows about my model. The class's attribute contains the entry for my contributed view model.
However, the key EClass is a proxy object. So it seems, that when resolving the EClass something goes wrong.
As a result, my view model contribution is not resolved as a fitting view and the default one is used to render the editor. The default editor works perfect.
I used the demo application for defining the view model by importing the model and the edit plugin into the workspace and creating a View Model Project.
Everything went well during the definition, I did not get any errors.
The generated view XML file looks similar to the example User.view file from the makeithappen example. The href attribute value of the rootEClass element looks fine syntactically. However, this URL is different to the one that can be observed in the Ecore Editor for the root class.
I tried to fix the URL in the view model file to match the one displayed in the Ecore Editor. Still the EClass could not be resolved and remains proxy in the debug session.
Do you know about the error and know of some remedy?
Thanks very much in advance!
Powered by FUDForum
. Page generated in 0.01538 seconds