Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Question on Java code generator in Eclipse Juno
Question on Java code generator in Eclipse Juno [message #877334] Sat, 26 May 2012 09:33 Go to next message
Frank W is currently offline Frank W
Messages: 3
Registered: January 2012
Junior Member
Hi,
I have a question on the new code generator in Eclipse Juno (see wiki.eclipse.org/MDT/OCL/New_and_Noteworthy/Juno#Milestone_3), there it says: "This new direct OCL 2 Java Code Generator Component supports genmodelling of direct Java code for OCL delegate annotations". Does that mean that this new code generator will only work for OCL expressions in Ecore models (I hope my question makes sense, I'm a bit confused by all this technical lingo)? Basically I'm looking for a way to generate Java legacy code from OCL constraints stored in UML (class) models. With "legacy" I mean Java code that works without using a framework like EMF or similar. The Dresden OCL implementation supports such code generation, but the generated Java code is not that easy to integrate in your own code (and their code generation is largely undocumented).
Re: Question on Java code generator in Eclipse Juno [message #877358 is a reply to message #877334] Sat, 26 May 2012 10:35 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4003
Registered: July 2009
Senior Member
Hi

The code generator generates code for all loaded pivot models, which may
arise from embedded OCL or independent Complete OCL documents, or indeed
manually injected OCL.

On 26/05/2012 14:33, Frank W wrote:
> Hi,
> I have a question on the new code generator in Eclipse Juno (see
> wiki.eclipse.org/MDT/OCL/New_and_Noteworthy/Juno#Milestone_3), there
> it says: "This new direct OCL 2 Java Code Generator Component supports
> genmodelling of direct Java code for OCL delegate annotations". Does
> that mean that this new code generator will only work for OCL
> expressions in Ecore models (I hope my question makes sense, I'm a bit
> confused by all this technical lingo)? Basically I'm looking for a way
> to generate Java legacy code from OCL constraints stored in UML
> (class) models. With "legacy" I mean Java code that works without
> using a framework like EMF or similar. The Dresden OCL implementation
> supports such code generation, but the generated Java code is not that
> easy to integrate in your own code (and their code generation is
> largely undocumented).
Previous Topic:OCL as an "object reference graph"
Next Topic:[Announce] Eclipse OCL 4.0.0 (Juno) RC2 is now available
Goto Forum:
  


Current Time: Wed Jul 23 22:34:11 EDT 2014

Powered by FUDForum. Page generated in 0.01540 seconds