Skip to main content


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 08:30 Go to next message
Cedric Moonen is currently offline Cedric MoonenFriend
Messages: 274
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 10:18 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
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 Apr 26 06:20:27 GMT 2024

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

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

Back to the top