Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325010 - Exeed editor does not support dynamic packages
Summary: Exeed editor does not support dynamic packages
Status: CLOSED FIXED
Alias: None
Product: Epsilon
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Dimitris Kolovos CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-10 16:17 EDT by Renat Zubairov CLA
Modified: 2012-02-06 10:59 EST (History)
1 user (show)

See Also:


Attachments
patch (2.93 KB, application/octet-stream)
2010-09-12 15:10 EDT, Renat Zubairov CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.