|
|
Re: [Xcore] instanceof / typeof / casting problem when working with dynamic Instances [message #1751252 is a reply to message #1751249] |
Fri, 06 January 2017 10:29 |
Joel Greenyer Messages: 20 Registered: October 2014 |
Junior Member |
|
|
German,
comments below.
German Vega wrote on Fri, 06 January 2017 10:06
How are you loading your dynamic model?
see the example project that was attached to my initial post. Just open the MyZoo.xmi in the Sample Reflective Editor and see that the derived values will not be shown. In my application I'm loading the models in the same way.
If you launch another eclipse runtime workbench, so that the generated code will be loaded for the Zoo model, and you import the zoo project there as well, and then open the MyZoo model, the derived values will be shown.
German Vega wrote on Fri, 06 January 2017 10:06
If you use the generated package, you should not have instances of DynamicEObject but rather instances of the actual generated implementations (i.e. ReptileImpl).
For our application it is important that we can work with dynamic instances.
German Vega wrote on Fri, 06 January 2017 10:06
Are you executing an eclipse plugin or an standalone application?
All within Eclipse
Quote:
I had similar problems in my standalone application, and were related to wrong manual package registration.
Thanks
Joel
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04902 seconds