eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

[project] Eliminate direct manual contributions to generated models #1155

Open eclipse-ocl-bot opened 1 month ago

eclipse-ocl-bot commented 1 month ago

| --- | --- | | Bugzilla Link | 413709 | | Status | NEW | | Importance | P3 normal | | Reported | Jul 25, 2013 04:49 EDT | | Modified | Jul 25, 2013 07:47 EDT | | Reporter | Ed Willink |

Description

There is a non-trivial amount of manual code in the emf-gen folders. This risks getting lost if the merge goes astray. In many cases the manual contributions support a hierarchy of derived implementations, for which Ecore support is unhelpful; there must be a root implementation, so having a hierarchy in which the root functionality delegates whereas a derived class introduces a model variable gets into name clash problems.

Now that we're using some javaget inc we can use these to insert the manual contributions from an external source.

eclipse-ocl-bot commented 1 month ago

By Ed Willink on Jul 25, 2013 07:47

Full auto-generation of the CG model pushed to master.

CGElementModelSpec and CGTypedElementModelSpec provide examples of the addition of a single method, or one with two derivations.

CGValuedElementModelSpec is what I really wanted it for. A family of ten methods with many derivations that I could not understand when spread throughout the code. They are no localized in a 2D java table. Magic.

The code is extensible for QVTd and the underlying framework should allow the full auto-generation to be rolled out for CS and AS models in due course.