Question on Java code generator in Eclipse Juno [message #877334] |
Sat, 26 May 2012 09:33  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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).
|
|
|
Powered by
FUDForum. Page generated in 0.04728 seconds