Solved. My mistake, I had forgotten to put the JavaSourceLanguage instance in the repository.
sorry about that
nicolas
----- Mail original -----
De: "Nicolas Anquetil" nicolas.anquetil@inria.fr À: "Tudor Girba" tudor.girba@gmail.com Cc: "Moose-dev Moose Dev" moose-dev@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@gmail.com À: "Nicolas Anquetil" Nicolas.Anquetil@inria.fr Cc: "Moose-dev Moose Dev" moose-dev@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev