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 [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
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" <[hidden email]> > À: "Nicolas Anquetil" <[hidden email]> > Cc: "Moose-dev Moose Dev" <[hidden email]> > 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 [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev errorJavaSourceLanguage.png (70K) Download Attachment |
Solved. My mistake, I had forgotten to put the JavaSourceLanguage instance in the repository. sorry about that nicolas ----- Mail original ----- > De: "Nicolas Anquetil" <[hidden email]> > À: "Tudor Girba" <[hidden email]> > Cc: "Moose-dev Moose Dev" <[hidden email]> > 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" <[hidden email]> > > À: "Nicolas Anquetil" <[hidden email]> > > Cc: "Moose-dev Moose Dev" <[hidden email]> > > 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 > [hidden email] > https://www.iam.unibe.ch/mailman/listinfo/moose-dev _______________________________________________ Moose-dev mailing list [hidden email] 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" <[hidden email]> >> À: "Tudor Girba" <[hidden email]> >> Cc: "Moose-dev Moose Dev" <[hidden email]> >> 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" <[hidden email]> >>> À: "Nicolas Anquetil" <[hidden email]> >>> Cc: "Moose-dev Moose Dev" <[hidden email]> >>> 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 >> [hidden email] >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev > > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.iam.unibe.ch/mailman/listinfo/moose-dev -- www.tudorgirba.com "Be rather willing to give than demanding to get." _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Free forum by Nabble | Edit this page |