Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Cedric Moonen is currently offline Cedric Moonen
Messages: 269
Registered: August 2009
Senior Member
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
Ed Willink is currently offline Ed Willink
Messages: 4027
Registered: July 2009
Senior Member
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: Fri Aug 22 13:53:07 EDT 2014

Powered by FUDForum. Page generated in 0.01579 seconds