No doubt there are other ways to do this, but I don't know them and probably Tycho is a better place to ask.]]>Ed Merks2024-02-25T18:21:58-00:00Converting/exporting EMF generated projects into maven artefacts
https://www.eclipse.org/forums/index.php/mv/msg/1114444/1863757/#msg_1863757
But I would like to use this generated code (mainly the model projects) within a maven project.
Is there a way I can systematically convert the generated model projects into Maven artifacts?
Ideally, I would like to automate the building of such maven artefact(s). (I am currently using Tycho to build my plugins)
The closest I could find is eclipse:make-artifacts from 2011 (deprecated)
]]>Jad El-khoury2024-02-25T14:30:50-00:00Re: No Model Importer available for EMF Generator Model
https://www.eclipse.org/forums/index.php/mv/msg/1114251/1863057/#msg_1863057
Thank you for your response.
The problem is resolved by re-installing Eclipse Modeling Tools and then Epsilon, Emfatic, and Sirius on top of it.
Regards,
Ehsan ]]>Ehsan Ahmad2024-01-12T22:06:32-00:00Re: No Model Importer available for EMF Generator Model
https://www.eclipse.org/forums/index.php/mv/msg/1114251/1863043/#msg_1863043
Ed Merks2024-01-12T10:48:09-00:00No Model Importer available for EMF Generator Model
https://www.eclipse.org/forums/index.php/mv/msg/1114251/1863042/#msg_1863042
I am trying to create a genmodel for my ecore model. But "Select a Model Importer" dialogue does not show any option and the list of "Model Importers:" is empty. It was working at the start.
I am using
- Eclipse IDE for Java Developers 4.28.0.20230608-1200
- Epsilon core 2.4.0.202203041826,
- Emfatic 1.0.0.202103051329
- Sirius 7.1.1.202306201521
I have tried creating genmodel for a simple ecore within a fresh workspace but it still did not work and the Model Importer dialogue is still empty.
any hint?
Regards,
Ehsan
]]>Ehsan Ahmad2024-01-12T10:13:29-00:00Re: EmfForms TreeMasterViewer Validate Icon Image
https://www.eclipse.org/forums/index.php/mv/msg/1114131/1862685/#msg_1862685
In EMFForms, each node in the tree master detail renderer is provided with its own unique context. This is an efficient design choice because, by default, these contexts are disposed of when they're not active. This helps in managing resources effectively.
You've probably observed that validations on a user node are visible only when that node is selected in the tree. As soon as you switch to a different node, these validations are no longer displayed. This behavior aligns with the context-sensitive design of EMFForms.
However, if your requirement is to always show the validation (despite it being more memory-intensive), there's a solution for that. For a feature-based run configuration, you'll need to add the "EMF Forms Deep Validation Initial Feature" (org.eclipse.emf.ecp.view.validation.initial.feature). In case you're working with a plugin-based configuration, the required plugin is "org.eclipse.emf.ecp.view.treemasterdetail.validation".
These additions will ensure that validations are persistently visible, irrespective of the node selection in the tree.
Hope this helps and best of luck with your project!
Best,
Eugen]]>Eugen Neufeld2023-12-20T23:54:50-00:00EmfForms TreeMasterViewer Validate Icon Image
https://www.eclipse.org/forums/index.php/mv/msg/1114131/1862594/#msg_1862594
We are trying validation error icon changed on treemasterdetail
User icon is not changed on treemasterdetail when Last Name field empty. Last Name field is red. Validation control is working for last name. But Not changed anything on treemasterviewer icon.
for this testing, I am created makeithappen Project form in Examples->EMF Forms as basicly. Not modify anything.
The screen shot is attached. There is a validation error on "Last Name" Field but User icon is not error image]]>Hakan GONEN2023-12-13T05:57:07-00:00Re: [Edapt] Migrating cross reference classcast issue
https://www.eclipse.org/forums/index.php/mv/msg/1114051/1862460/#msg_1862460
Sadly it es very hard to make a functional example since i am trying to make an existing application migration ready and each ecore has 100+ classes. I am working through the issues i am having and hopefully at the end i can make a post with the problems i encountered. The main problem i am encountering is that EMF has not the same constraints as Edapt and it is not quite clear what the constraints of Edapt are.
The issue of this topic was definitely resolved by putting the initial composite change of the ecores in the right order. Not only that, but also the order matters in which the classes are initially added to the history. For EMF model generation it doesnt matter in which order the classes are designed in the ecore. EMF resolves the dependencies in the genmodel and sets the correct ID's in the Factory.
The Problem comes with Edapt Initial History generation. Here it seems that it does not resolve any class dependencies so when the migrator code reconstructs the Epackage the EclassifierList is out of order with the ID's that are set in the Factory. So i had to reorder all class definitions in the Edapt history to align it with how the genmodel does.
Cheers
]]>Roland Fahlbusch2023-12-06T08:37:59-00:00Re: [Edapt] Adding a new EPackage cause NPE during Migration
https://www.eclipse.org/forums/index.php/mv/msg/1110776/1862375/#msg_1862375
Note that i have the ecore located under A.model/a.ecore
The Bundle-SymbolicName was A.model instead of plain A.
(of course i had to rename all the references to the plugin after that)
Weirdly enough this made no problem at all elswhere
Changing Bundle-SymbolicName:a;singleton:=true fixed it for me.
Hope this may be of help to someone in the future ;)]]>Roland Fahlbusch2023-11-29T12:27:28-00:00