-
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
Branch (when relevant): master
Repeatable: Always
Problem description
When the metamodel includes some inheritance, selecting attributes from parent classes for virtualization is impossible. The problem arises both in the autocomplete function of VPDL language and when using the "*" operator that should virtualize everything from the class (including inherited attributes)
Used metamodels/models (when relevant)
The metamodel used to reproduce the problem is adapted from the one used in the EMF Views examples but includes the mentioned inheritance.
It is published in the examples repository for download if needed.
To Reproduce
Steps to reproduce the behavior:
- Create the VPDL file like the one below:
create view getJournal as
select publications.Journal.desc,
publications.Publications.journals,
from 'http://publications' as publications,
-
The VPDL file will raise the error indicating the inexistence of the "desc" attribute and will not generate the viewpoint. Trying
publications.Publication.desc
will work fine, meaning the problem with the inherited class "Journal." -
Another option to show the problem is to try to use
publications.Journal.*,
which will not raise errors in the VPDL and viewpoint generation -
See the error (screenshot below) when opening the view within MoDisco Browser. The Journal element is correctly virtualized but contains no attribute from the parent class.
Expected behavior
The view should include parent class attributes, allowing users to navigate in the view like it happens in the original model.
Screenshots
VPDL file with the error when trying to access inherited attributes
MoDisco browser showing only Journal
attributes without the attributes from parent Publication
class