| Summary: | Repo import doesn't work with cross-packageUnit dependencies | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Caspar D. <caspar_d> | ||||||
| Component: | cdo.core | Assignee: | Caspar D. <caspar_d> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | saulius.tvarijonas | ||||||
| Version: | 4.0 | Flags: | stepper:
review+
|
||||||
| Target Milestone: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Caspar D.
Actually I've changed my mind: calling #createEPackage with lookForResource == true, makes sense. (In fact I can't think of a scenario when calling it with 'false' would make sense.) The problem is just that we have to keep the resourceSet from delegating to some other object, which may attempt a demandLoad or whatever. So, in the patch that I'll upload shortly, I'm introducing a derivative of ResourceSetImpl that allows the lookup delegation to be disabled/enabled as needed. Also, I'll add a boolean arg 'resolve' to the packageUnit.load(*) call, because I do still believe the resolution should be postponed until the resourceSet is known to contain the contents of ALL the packageUnits being imported. Created attachment 185901 [details]
Patch v1
Created attachment 185933 [details]
Patch v2 - ready to be committed
Reformatted slightly
Committed to HEAD Available in R20110608-1407 |