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
Not sure how to deal with this. Right now all attributes of an EClass are visualised both inherited and non-inherited attributes. I don't think users expect to see inherited attributes (as this is also not the usual case in OO languages). We could of course also make this configurable.
The text was updated successfully, but these errors were encountered:
As a developer inspecting a class diagram, I wouldn't want inherited attributes to be displayed in a sub-class. On the other hand, there is no way now to identify inherited attributes in the parent class either, if the inherited attributes are not visualized in sub-classes. To solve this problem, one could use the proper modifier icons (i.e. for protected), which are already given in PlantUML.
For the implementation I would recommend to extend the ClassDiagram class to store an EClass to EAttribute mapping (or likewise implementation), to state which EAttributes are to be visualized for which EClass, thus reducing control-flow logic in the PlantUML generator. The determination of the EAttributes could then be realized in the Metamodel visualiser?
Not sure how to deal with this. Right now all attributes of an EClass are visualised both inherited and non-inherited attributes. I don't think users expect to see inherited attributes (as this is also not the usual case in OO languages). We could of course also make this configurable.
The text was updated successfully, but these errors were encountered: