Why we can't save component which we add in coffee editor #40
Replies: 14 comments
-
Hi @qizewen(qizewen) , |
Beta Was this translation helpful? Give feedback.
-
[Qizewen] we just add some component like 'actor.java', 'usecase.java' etc. in org.eclipse.emfcloud.modelserver.coffee.model and other associated package. now we can add 'actor' in tree list , but can't save |
Beta Was this translation helpful? Give feedback.
-
right, unfortunately you need to extend the ecore in the org.eclipse.emfcloud.modelserver.coffee.model bundle as the save is done by EMF |
Beta Was this translation helpful? Give feedback.
-
[Misaka11] Can I ask for the version of the xtext and java? I add 'Actor' which extends 'Component' in the ecore and used xtext 2.19.0 to generate code. But when I opened 'superbrewer3000.coffee' in coffee editor, it got some error and immediately disappered. |
Beta Was this translation helpful? Give feedback.
-
[Misaka11] |
Beta Was this translation helpful? Give feedback.
-
[Misaka11] This is the log. |
Beta Was this translation helpful? Give feedback.
-
[Misaka11] I compared the generated code by xtext 2.19.0 with the repository, it has some difference. |
Beta Was this translation helpful? Give feedback.
-
@Misaka11(misaka11) does home/misaka11/backend/examples/superbrewer3000.coffee exists? |
Beta Was this translation helpful? Give feedback.
-
[Qizewen] No, superbrewer3000.coffee disappered. |
Beta Was this translation helpful? Give feedback.
-
@tortmayr(tortmayr) @martin-fleck(martin-fleck) Do you have an idea? |
Beta Was this translation helpful? Give feedback.
-
[Misaka11] When I opened 'superbrewer3000' in coffee editor, it was deleted. But I replace 'com.eclipsesource.coffee.modelserver-0.1.0-SNAPSHOT-standalone.jar' with your repository's one, it worked well. |
Beta Was this translation helpful? Give feedback.
-
@Misaka11(misaka11) I can't really follow you right now. Is your issue solved now? |
Beta Was this translation helpful? Give feedback.
-
[Misaka11] No, I have not solved the issue. I uploaded the code in 'https://github.com/Misaka11/emfcloud_temp.git'. I only add 'Actor' to ecore and generated by Xtext 2.19.0. Best, misaka11. |
Beta Was this translation helpful? Give feedback.
-
Thank you for sharing. So what I can see is, that you added a class Actor. I can also see, that you did not modify the coffee.ecore and based on the headers of the files you did not use the ecore generator to generate classes. Could you describe how you added the Actor class? |
Beta Was this translation helpful? Give feedback.
-
We have added some new components to the coffee editor.
We can save the original component successfully like 'machine'
it shows
</org.eclipse.emfcloud.modelserver.coffee.model:Machine>
When we save the newly added component
it shows nothing.
How to solve this problem.Thanks in advance.
original thread by Qizewen
Beta Was this translation helpful? Give feedback.
All reactions