De: "Nicolas Anquetil"
<nicolas.anquetil(a)inria.fr>
À: "Tudor Girba" <tudor.girba(a)gmail.com>
Cc: "Moose-dev Moose Dev" <moose-dev(a)iam.unibe.ch>
Envoyé: Jeudi 10 Mars 2011 10:46:11
Objet: [Moose-dev] Re: Famix Java
That's what I did :-)
I have another problem, I can not dump my Model because Fame (Java) is
having an issue with JavaSourceLanguage:
"Unknown element" ...
See eclipse/junit error attached
The solution right now is not to create any SourceLanguage Entity
nicolas
----- Mail original -----
De: "Tudor Girba"
<tudor.girba(a)gmail.com>
À: "Nicolas Anquetil" <Nicolas.Anquetil(a)inria.fr>
Cc: "Moose-dev Moose Dev" <moose-dev(a)iam.unibe.ch>
Envoyé: Jeudi 10 Mars 2011 10:33:55
Objet: Re: Famix Java
Excellent!
Regarding the problem: parentModule comes from the C extension which
you got because you exported the complete meta-model. You should use
parentScope.
Cheers,
Doru
On 10 Mar 2011, at 10:25, Nicolas Anquetil wrote:
I generated the new Famix Java.
There is one error in ScopingEntity :
@FameProperty(name = "globalVariables", opposite =
"parentModule", derived = true)
public Collection<GlobalVariable> getGlobalVariables() {
if (globalVariables == null) {
globalVariables = new MultivalueSet<GlobalVariable>()
{
@Override
protected void clearOpposite(GlobalVariable e) {
e.setParentModule(null);
}
@Override
protected void setOpposite(GlobalVariable e) {
e.setParentModule(ScopingEntity.this);
here ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
setParentModule wants a Module and not a Scope
}
};
}
return globalVariables;
}
--
www.tudorgirba.com
"It's not what we do that matters most, it's how we do it."
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch