Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325010

Summary: Exeed editor does not support dynamic packages
Product: [Modeling] Epsilon Reporter: Renat Zubairov <rzubairov>
Component: CoreAssignee: Dimitris Kolovos <dkolovos>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: rzubairov
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
patch none

Description Renat Zubairov CLA 2010-09-10 16:17:20 EDT
Dynamic packages that are contributed not as generated code but as emf.dynamic_package extension point can not be used as basis for dynamic Exeed model editing.
The simple fix solves this issue (attached to the bug).

The trick is that EPackage.Registry.INSTANCE contains instances of EPackage.Descriptor and not EPackage (due to lazy loading and resource saving concerns), however once you would need to have EPackage you can simply call EPackage.Descritptor#getEPackage().

Patch is doing only that.
Comment 1 Dimitris Kolovos CLA 2010-09-12 06:32:37 EDT
Many thanks for reporting this and for suggesting a solution. Something must have gone wrong while uploading the patch - but this appears to be straightforward to fix anyway.
Comment 2 Renat Zubairov CLA 2010-09-12 15:10:27 EDT
Created attachment 178705 [details]
patch

here is a path again.
Trick is to display package list directly without resolution of Epackage.Descriptors into Epackage instances.
BTW the Registered package view has also this isssue (do not support EPackage.Descriptor)
Comment 3 Dimitris Kolovos CLA 2010-09-24 08:53:49 EDT
Thanks. For some reason I can't apply the patch directly but I think I got the gist of it and will fix this in a few more places. The fix will appear in the next interim version we'll be rolling out in the next few days.
Comment 4 Dimitris Kolovos CLA 2010-10-15 08:54:35 EDT
Fixed in the SVN. Fix will appear in version 0.9. Thanks!
Comment 5 Dimitris Kolovos CLA 2010-11-04 08:06:01 EDT
Fixed in the latest interim version (0.8.9.201011041158).
Comment 6 Dimitris Kolovos CLA 2010-11-25 08:23:09 EST
Fixed in 0.9.0.