Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF generates to the wrong directory(EMF generates to the wrong directory)
EMF generates to the wrong directory [message #1859160] Tue, 16 May 2023 16:58 Go to next message
Geoffry Roberts is currently offline Geoffry RobertsFriend
Messages: 7
Registered: December 2022
Junior Member
I have used EMF for years. This is a first and I am wondering if someone can shed any light.

When I do a generate "All", I get a copy of the editor from the editor project in the edit project. This happens and the thing won't build.

The project is called ALFSDK. I have my ecore in ALFSDK.model. I generate and get:

ALFSDK.model
ALFSDK.model.edit
ALFSDK.model.editor
ALFSDK.model.test

So far so good. Looks normal.

The generator generates: alfsdk.presentation.ALFSDKEditor.java, this in the *.editor bundle;
AND
alfsdk.provider.ALFSDKEditor.java this, in the *.edit bundle. It's the same class in both places. What could cause this?

I will say that my bundles are submodules in a Maven build. and I have had to adopt non standard pathing. The path to the errant file is
src/gen/java/alfsdk/provider.ALFEditor.java

Maven packages everything just fine if I first delete the errant file.

Thanks
Re: EMF generates to the wrong directory [message #1859162 is a reply to message #1859160] Tue, 16 May 2023 19:16 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

I often have magic things happen with genmodel and I don't even have Maven to help me.

I find there is no substitute for going in with a debugger and finding out where and so why the perverse thing happens. It is almost always a stupid typo on my part, much aggravated by genmodel's flexibility to suit many different tastes.

Regards

Ed Willink
Re: EMF generates to the wrong directory [message #1859167 is a reply to message #1859162] Wed, 17 May 2023 03:47 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Where it generates depends in the Xyz Directory properties. Setting it to blank turns off that generation. For the GenModel we see that we deliberately generate the edit and editor into the same project.

index.php/fa/43196/0/


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Unable to dynamically call an EOperation of a generated type
Next Topic:EMF forms with ComboBox
Goto Forum:
  


Current Time: Fri Apr 26 04:53:28 GMT 2024

Powered by FUDForum. Page generated in 0.03016 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top