Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Subsets and redefines code generation problem
Subsets and redefines code generation problem [message #549580] Tue, 27 July 2010 09:18 Go to next message
Chokri Mraidha is currently offline Chokri MraidhaFriend
Messages: 28
Registered: July 2009
Junior Member
Hello,

I am specifying a hierachical static profile containing subsetted and
redefined properties. The transformation to ecore runs well and takes into
account subsets and redefines. However, the generated code does not compile.
The top level profile package is not generated but is used in subprofiles
containing subsetted or redefined properties.
Please find enclosed a small example illustrating the problem.

Chokri


Re: Subsets and redefines code generation problem [message #553045 is a reply to message #549580] Mon, 16 August 2010 08:27 Go to previous messageGo to next message
Chokri Mraidha is currently offline Chokri MraidhaFriend
Messages: 28
Registered: July 2009
Junior Member
Hi,

Any workaround to deal with subsetted properties?

Thanks in advance.

Chokri


"Chokri Mraidha" <Chokri.Mraidha@cea.fr> a
Re: Subsets and redefines code generation problem [message #553335 is a reply to message #553045] Tue, 17 August 2010 08:11 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
If I remenber well we had faced the same nested package problem with EMF few years ago. The trick was to add a test after each transformation. No easy and painful but it worked well Confused
Re: Subsets and redefines code generation problem [message #553450 is a reply to message #549580] Tue, 17 August 2010 14:48 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Chokri,

Packages without classifiers aren't generated and normally aren't
needed. You could try to add a dummy classifier to any package that's
not generated...


Chokri Mraidha wrote:
> Hello,
>
> I am specifying a hierachical static profile containing subsetted and
> redefined properties. The transformation to ecore runs well and takes into
> account subsets and redefines. However, the generated code does not compile.
> The top level profile package is not generated but is used in subprofiles
> containing subsetted or redefined properties.
> Please find enclosed a small example illustrating the problem.
>
> Chokri
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Subsets and redefines code generation problem [message #628592 is a reply to message #549580] Mon, 16 August 2010 08:27 Go to previous message
Chokri Mraidha is currently offline Chokri MraidhaFriend
Messages: 28
Registered: July 2009
Junior Member
Hi,

Any workaround to deal with subsetted properties?

Thanks in advance.

Chokri


"Chokri Mraidha" <Chokri.Mraidha@cea.fr> a
Re: Subsets and redefines code generation problem [message #628594 is a reply to message #553045] Tue, 17 August 2010 08:11 Go to previous message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
If I remenber well we had faced the same nested package problem with EMF few years ago. The trick was to add a test after each transformation. No easy and painful but it worked well :?
Re: Subsets and redefines code generation problem [message #628595 is a reply to message #549580] Tue, 17 August 2010 14:48 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Chokri,

Packages without classifiers aren't generated and normally aren't
needed. You could try to add a dummy classifier to any package that's
not generated...


Chokri Mraidha wrote:
> Hello,
>
> I am specifying a hierachical static profile containing subsetted and
> redefined properties. The transformation to ecore runs well and takes into
> account subsets and redefines. However, the generated code does not compile.
> The top level profile package is not generated but is used in subprofiles
> containing subsetted or redefined properties.
> Please find enclosed a small example illustrating the problem.
>
> Chokri
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Profile OCL validation
Next Topic:Retrieving applied stereotypes
Goto Forum:
  


Current Time: Fri Mar 29 16:02:28 GMT 2024

Powered by FUDForum. Page generated in 0.02745 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top