Skip to content

EMF Views does not virtualize EEnum attributes correctly #14

@jameswpm

Description

@jameswpm

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions