blended-modeling / eatxt

Eclipse Public License 2.0
1 stars 1 forks source link

Auto-generate content proposal class #32

Closed steghoja closed 2 years ago

steghoja commented 2 years ago

We currently have a manually implemented class org.bumble.eatxt.ui.contentassist.EatxtProposalProvider which produces code completion suggestions when entering names of new instances. There is one completion method for each meta-model element. The code is almost identical for each meta-model element and could easily be auto-generated. That would improve our ability to adapt to new meta-model versions.

The easiest way is probably to create a new fragment based on the existing one. We can override it and include it in the MWE2 workflow, similar to what we did for the formatter.