|
|
Re: How to avoid code generation of the refered ecore file in genmodel file [message #1830299 is a reply to message #1830276] |
Thu, 23 July 2020 03:38 |
David Sun Messages: 45 Registered: July 2020 |
Member |
|
|
In Ecore Model Editor of ladder.ecore , I loaded PLCVariables.ecore.
Then I created an EClass xxx for ladder.ecore, and created an EReference for xxx and refered an EClass yyy of PLCVariables.ecore.
I open ladder.gemodel in EMF Generator Editor. The plcvariables was shown under Ladder.
On "Model" node in EMF Generator Editor of ladder.genmodel, I selected "Generate All" from popup menu.
After genreating the code, The eclipse show me errors.
The EMF added packages of plcvariables.ecore into "Runtime" . But there was no package of plcvariables.ecore in ladder.model's project.
My question is : How can I avoid those errors? I generated code of plcvariables.ecore in plcvariables.ecore's project, I added those generated packages of plcvaraibles.ecore into "dependencies" of ladder.ecore's project.How can I disable emf add pakcages of refered plcvariables.ecore automatically? I do not need those packages in ladder.ecore's project.
-
Attachment: 1.png
(Size: 19.15KB, Downloaded 396 times) -
Attachment: 2.png
(Size: 13.74KB, Downloaded 382 times) -
Attachment: 3.png
(Size: 7.81KB, Downloaded 378 times) -
Attachment: 4.png
(Size: 25.29KB, Downloaded 379 times) -
Attachment: 7.png
(Size: 85.70KB, Downloaded 403 times)
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03266 seconds