|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
Registered: July 2020
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.
(Size: 19.15KB, Downloaded 235 times)
(Size: 13.74KB, Downloaded 230 times)
(Size: 7.81KB, Downloaded 238 times)
(Size: 25.29KB, Downloaded 227 times)
(Size: 85.70KB, Downloaded 251 times)
Powered by FUDForum
. Page generated in 0.01438 seconds