-
I am currently working on Issue#35 (Creation of Ecore-Files). My current task is to create the header for the ecore file with a package (which includes the parameters of the user). Now my question is, if this should happen in a newly created Action on the GLSP Server (for better maintenance) or if a simple hard-coded string, added to the file, in the frontend, would be enough? Thanks in advance, original thread by simongraband |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
That's a good question. First we'd have to establish who handles the ecore file generation. I see two scenarios for this: Maybe you should raise this quesion in ecore-glsp to see which options is preferred by the project leads. |
Beta Was this translation helpful? Give feedback.
-
[simongraband] I talked to Jonas and he told me to create a Java Extension that creates the Ecore-File. This is done so we can later on add the Code Generation Extension in the same way. |
Beta Was this translation helpful? Give feedback.
-
Sounds good to me. So probably this should be handled with a newly created Action. (GenerateCodeAction or something like that) |
Beta Was this translation helpful? Give feedback.
-
[simongraband] One final question: I know where to place the .jar file of my Java-Code (thanks to the Coffee-Editor) but Jonas thought it would be useful to upload the Java Code aswell. Do you have any recommendation on where i can integrate that into the project? |
Beta Was this translation helpful? Give feedback.
-
Sorry, I’m afraid I could not understand your question, could you please elaborate a bit more? |
Beta Was this translation helpful? Give feedback.
-
[simongraband] I created a Java-Program, that generates the Ecore-File from the EMF API. I created a JAR-File, from that program, and moved only the jar to the ecore-glsp project. This jar is then called when a new Ecore file is created. Now my question would be where i should place the original java-program (so the Project with the code and the maven dependencies) in the ecore-glsp repository. So that the Code is also in the repository and not only the JAR-File. |
Beta Was this translation helpful? Give feedback.
-
Ah I see. The java code for ecore-glsp should be checked in the 'server' directory (https://github.com/eclipsesource/ecore-glsp/tree/master/server). Is your java-programm independent of the existing glsp-ecore maven project? If not I'd recommend to integrate it into the existing maven project. Otherwise you could create a parent pom and and add the glsp-ecore project and your new java-programm as submodules. (If you need a reference for this parent-child setup you can checkout https://github.com/eclipsesource/ecore-glsp/blob/master/server/pom.xml) |
Beta Was this translation helpful? Give feedback.
Ah I see. The java code for ecore-glsp should be checked in the 'server' directory (https://github.com/eclipsesource/ecore-glsp/tree/master/server). Is your java-programm independent of the existing glsp-ecore maven project? If not I'd recommend to integrate it into the existing maven project. Otherwise you could create a parent pom and and add the glsp-ecore project and your new java-programm as submodules. (If you need a reference for this parent-child setup you can checkout https://github.com/eclipsesource/ecore-glsp/blob/master/server/pom.xml)