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."
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."
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
Nothing to be sorry about.
Actually, everyone is happy that you asked, and that we discussed about it (in private in this case) and that this led to you solving it within 10 minutes :).
Cheers, Doru
On 10 Mar 2011, at 11:12, Nicolas Anquetil wrote:
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
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Be rather willing to give than demanding to get."