-
Notifications
You must be signed in to change notification settings - Fork 3
Description
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:
- 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- Create the .eview file as usual, pointing to the models that conform to the modified version of Book and Publication metamodels.
- 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

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

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