On 14-09-15 13:28, Usman Bhatti wrote:
Agreed. That information is redundant and we can
remove Instance
variable. So, the getter becomes MooseModel>>sourceLanguage
<MSEProperty: #sourceLanguage type: #FAMIXSourceLanguage> <MSEComment:
'Source of the Language to which the model corresponds'> ^ self
propertyNamed: name ifAbsentPut: [ self allSourceLanguages detect: [
:each | each isAttached not ] ifNone: [ FAMIXUnknownSourceLanguage new
] ] I'll do this change.
In models with multiple languages, using the first found (detect:) can
be wrong.
If one would load a java model, one might start from a maven description.
Stephan