eMoflon / emoflon-neo

A Neo4j-based implementation of eMoflon
Eclipse Public License 2.0
6 stars 2 forks source link

Visualisation of multiple types with the same name #230

Closed anthonyanjorin closed 4 years ago

anthonyanjorin commented 4 years ago

In the following example, there are 5 types all named "T", but in different metamodels... In the visualisation it's all shown as T (see /TestSuite/src/org/emoflon/neo/example/typing/TypingTest.msl for the example).

I suggest we prefix the names of classes with the names of their metamodels in such cases. Doing this all the time would be a bad idea as it is only necessary to resolve name clashes.

image

anthonyanjorin commented 4 years ago

This doesn't matter so much for TGGs if the variables are in different domains...

maxischm commented 4 years ago

Does this only apply to (triple) rules or to models and patterns as well? What I mean is, can this happen in models and/or patterns?

anthonyanjorin commented 4 years ago

Yes, certainly. Such a type name clash can occur in any entity...