You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
Metamodel used in the example
VPDL file with the error when trying to access inherited attributes
MoDisco browser showing only Journal attributes without the attributes from parent Publication class
The text was updated successfully, but these errors were encountered:
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:
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 generationSee 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
Metamodel used in the example
VPDL file with the error when trying to access inherited attributes
MoDisco browser showing only
Journal
attributes without the attributes from parentPublication
classThe text was updated successfully, but these errors were encountered: