Problem with reference to the metamodel when implementing Java Service [message #1741958] |
Tue, 30 August 2016 16:09  |
Eclipse User |
|
|
|
Hi everyone.
I have started to use Sirius recently. I've finished all of the tutorials and also read the documentation. Then I started to develop my own modeller. But I got stuck in one point.
I need to write a Java Service. As it is stated in the documentation I can only implement services (methods) which has at least one parameter. The type of the parameter should be the metamodel class, on the instances of which I would like to run the service. So I need to refer to the metamodel to point to the appropriate type. I can use the "import" statement to do that, but Eclipse seems to not see the metamodel - I cannot refer to the metamodel without any errors.
I've done everything like in the tutorials. In the first instance of Eclipse I have the project with my metamodel loaded. In the second instance of Eclipse (launched from the first one) I have my Viewpoint Specification Project and the project with the example instance of the model for my domain as well. I referred to the metamodel in the manifest file and in all the "Metamodels" tabs in all the diagrams. Everything seems to work perfectly (creation of mappings, tools and so on) - the only place where there is something clearly wrong is the "import" statement in Java Services files.
To be honest I'm an absolute beginner in Eclipse technologies. I haven't developed any Eclipse Plug-ins in my life. So when the tutorial wanted me to deliver my metamodel plug-in to the Eclipse I simply created the Ecore Modeling Project (I'm familiar with the Ecore Tools application), designed my domain metamodel and attached such a project every time I was asked for the metamodel plug-in. Maybe here I did something wrong.
So my question is: has anyone experienced such a problem? Any idea for the solution?
I would appreciate any help from you. Thanks in advance!
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03571 seconds