Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve DomainConverter #632

Merged
merged 5 commits into from
Jul 19, 2021
Merged

Improve DomainConverter #632

merged 5 commits into from
Jul 19, 2021

Conversation

pcdavid
Copy link
Member

@pcdavid pcdavid commented Jul 16, 2021

  • [cleanup] Simplify domain inheritance conversion code
  • [cleanup] Refactor domain conversion code
  • [cleanup] Refactor EditingContextEPackageService
  • [cleanup] Log a warning when multiple domains/packages have the same nsURI
  • [fix] Ignore documents which could not be loaded properly

Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
- Keep the feature flag out of the DomainConverter itself so it stays
  a simple, context-free converter.
- Prevent dynamic domain definitions to override core EPackages
  like Ecore itself.

Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
Also add support for multiple Domain definitions inside a single
document (previously we only took the first one into account).

Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
…nsURI

Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
When a dynamic instance could not be loaded anymore (typically because
it's domain definition has been removed or has changed in an
incompatible way), we exposed an unusable document in the explorer,
with a raw UUID as its name.

Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
@sbegaudeau sbegaudeau merged commit 895c43e into master Jul 19, 2021
@sbegaudeau sbegaudeau deleted the pcd/enh/domain-converter branch July 19, 2021 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants