Skip to main content



      Home
Home » Modeling » OCL » [OCLinEcore] Project specific settings not taken into account for code generation
[OCLinEcore] Project specific settings not taken into account for code generation [message #1067705] Wed, 10 July 2013 04:30 Go to next message
Eclipse UserFriend
Hello,

If you have project specific settings and there you select one of the options to generate OCL code ("Generate Java Code in xxxBodies classes" or "Delegate for interpretation at run-time"), those settings are not taken into account when generating the code (even if you close and reopen the genmodel). Only the global settings will be taken into account.

I'm using OCL Examples and Editors v3.3.0.v20130611-1511

Thanks,
Cédric
Re: [OCLinEcore] Project specific settings not taken into account for code generation [message #1067729 is a reply to message #1067705] Wed, 10 July 2013 06:18 Go to previous message
Eclipse UserFriend
Hi

Some settings are badly coded, so it may help to restart Eclipse (and
report a bug).

As far as I am aware, it should only be necessary to restart the
genmodel editor.

If you want to use non-standard settings you may prefer to add the
following to your genmodel (just before the genPackages.

<genAnnotations source="http://www.eclipse.org/OCL/GenModel">
<details key="Use Delegates" value="false"/>
<details key="Use Null Annotations" value="true"/>
</genAnnotations>

Regards

Ed Willink

On 10/07/2013 09:30, Cedric Moonen wrote:
> Hello,
>
> If you have project specific settings and there you select one of the
> options to generate OCL code ("Generate Java Code in xxxBodies
> classes" or "Delegate for interpretation at run-time"), those settings
> are not taken into account when generating the code (even if you close
> and reopen the genmodel). Only the global settings will be taken into
> account.
>
> I'm using OCL Examples and Editors v3.3.0.v20130611-1511
>
> Thanks,
> Cédric
Previous Topic:Referencing other Enumerations from other .ecore Model
Next Topic:Debugging OCL constraints via java debugger
Goto Forum:
  


Current Time: Mon Jun 30 19:51:25 EDT 2025

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

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

Back to the top