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

EMF Views does not virtualize EEnum attributes correctly #14

Open
jameswpm opened this issue Jun 15, 2023 · 0 comments
Open

EMF Views does not virtualize EEnum attributes correctly #14

jameswpm opened this issue Jun 15, 2023 · 0 comments
Assignees
Labels

Comments

@jameswpm
Copy link
Contributor

Eclipse version: Eclipse Modeling Tools Version: 2022-12 (4.26.0)

EMF Views version: 0.4.0

Repeatable: Always

Problem description
When using metamodels that contain references to EEnum attributes, they are not correctly virtualized by EMF Views.

Used metamodels/models (when relevant)
A slightly adapted version of the "Book" metamodel from the EMF Views example is enough to reproduce the error. It's only necessary to include a new EEnum element in the Book with few elements.

To Reproduce

Steps to reproduce the behavior:

  1. Using the adapted version of the Book with the EEnum attribute, create the following VPDL file
create view publicationsAndBooks as

select book.Book.*,
       book.Chapter.*,
       book.Book join publication.Publication  as bookPublication,

from 'http://publication' as publication,
     'http://book' as book,

where s.title = t.title for bookPublication
  1. Create the .eview file as usual, pointing to the models that conform to the modified version of Book and Publication metamodels.
  2. Open the View using MoDisco or any other model viewer and check that the EEnum attributes are not virtualized correctly, even with no error triggered.

Expected behavior
The View should virtualize the EEnum elements.

Screenshots
The modified version of Book Metamodel
image

The view opened in the standard model viewer (genre is not rendered)
image

The view opened in MoDisco viewer (genre is rendered but as a reference instead of the values)
image

@jameswpm jameswpm added the bug label Jun 15, 2023
@jameswpm jameswpm self-assigned this Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant