Skip to main content



      Home
Home » Modeling » UML2 » Subsets and redefines code generation problem
Subsets and redefines code generation problem [message #549580] Tue, 27 July 2010 05:18 Go to next message
Eclipse UserFriend
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 04:27 Go to previous messageGo to next message
Eclipse UserFriend
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 04:11 Go to previous messageGo to next message
Eclipse UserFriend
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 10:48 Go to previous message
Eclipse UserFriend
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
>
>
>
Re: Subsets and redefines code generation problem [message #628592 is a reply to message #549580] Mon, 16 August 2010 04:27 Go to previous message
Eclipse UserFriend
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 04:11 Go to previous message
Eclipse UserFriend
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 10:48 Go to previous message
Eclipse UserFriend
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
>
>
>
Previous Topic:Profile OCL validation
Next Topic:Retrieving applied stereotypes
Goto Forum:
  


Current Time: Wed Jul 23 07:55:12 EDT 2025

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

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

Back to the top