[ECP] Custom Editor Form [message #1711696] |
Mon, 19 October 2015 10:54 |
|
Hi,
I have created a new custom form based on this tutorial [1]. However, if I include my new viewmodel plugin it does not pickup the new form but shows the Standard View editor instead.
I have made sure that:
* Custom forms render well in preview
* extension points were generated that point to custom models
* model, edit and view model plugins are included in run config
I was hoping that the custom forms would automatically override the reflective forms. Do I have to do something special in order for the custom view model to be picked up?
Cheers and thanks for taking the time to answer,
Wim
[1] http://eclipsesource.com/blogs/tutorials/getting-started-with-EMF-Forms/
[Updated on: Mon, 19 October 2015 10:55] Report message to a moderator
|
|
|
|
|
|
|
Re: Custom Editor Form [message #1711952 is a reply to message #1711872] |
Tue, 20 October 2015 12:05 |
|
Hi,
I have debugged the model bootstrapping process and I have found the reason that my custom form is not used. The ViewModelExtensionManager is registering the model under EObject "Application" but when the ECP RCP asks for a custom model ExtensionXMIViewModelProvider is querying with "ApplicationImpl". This returns NOT_APPLICABLE (-1.0) and the reflective form viewer is activated.
Just wanted to report that l have found the cause. Now I will start looking for the solution.
Cheers,
Wim
[Updated on: Tue, 20 October 2015 12:05] Report message to a moderator
|
|
|
Re: Custom Editor Form [message #1712010 is a reply to message #1711952] |
Tue, 20 October 2015 17:40 |
|
Turns out that when you use subpackages in your ecore the custom view model is not picked up. I did a toe to toe comparison of the two models (example model for makeithappen and my own model) and in the end had nothing left to try but to remove my subpackages. Sure enough that was the problem.
Is this as designed or should I file an issue?
Cheers,
Wim
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05519 seconds