| Summary: | Incorrect XMI metamodelDeclarations hrefs in multi-package model | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Ed Willink <ed> |
| Component: | Xtext | Assignee: | Jan Koehnlein <jan> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jan, sebastian.zarnekow, sven.efftinge, tmf.xtext-inbox |
| Version: | 1.0.0 | Flags: | sebastian.zarnekow:
helios+
jan: indigo+ |
| Target Milestone: | M3 | ||
| Hardware: | PC | ||
| OS: | Windows Vista | ||
| Whiteboard: | |||
|
Description
Ed Willink
Support for nested EPackages in the EmptyPackageAwareGrammarAccessFragment. To make it clearer, I've moved the implementation from there to a new SubPackageAwareGrammarAccessFragment. Please replace your GrammarAccessFragment in the MWE2 workflow and verify if this fixes the bug. Note that our handling subpackages is quite hacky, that's why we don't make it the default. In general, we recommend not to nest EPackages at all, because it has a lot of funny effects on the package registry and the treatment of nsURIs, especially when empty packages are involved. See for example http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg41824.html Sorry, but I have to work with layered packages: QVT, OCL, UML, MOF, ... It is totally normal. It seems very wrong that normal behaviour should have to use a non-normal fragment, whose impact is solely at compile time, so there is no performance reason for the partition. We should really make EmptyPackageAwareGrammarAccessFragment the default as we did for the clustered builder in #325759. Indigo M3 should be early enough to test it properly. Removed old GrammarAccessFragment and made SubPackageAware implementation the default. Pushed to master: 88d7f5808cedf141ef1feed1c3c4756d8d32d6df No change necessary for SR2 (1.0.2) Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |