But my question regards to the practical use of it. I was following your tutorial videos, after installing the "EMF Profiles" from your update site into my Eclipse EMF + Papyrus combination. So the next thing I wanted to do was to create an EMF Profile to apply it to my example EMF model. But as far as I can see, there is simply no create "EMF Profile" or "EMF Profile Diagram" option in the "New"-Wizard.
I would like to create profiles in my existing models
Hi Philip,
thanks for your quick response. That was exactly what I wanted know. Sure, I am not in a position to compare the new system with the old one, but it sure seems to work. And I have managed to extend my example EMF models through different Profile-projects.
But I have again some new questions. Hope you would help me with them.
First of all, it seems to me -or I am doing something wrong somewhere-, that event though I save my "profiled" models, later I always need to load the profile applications again after closing and opening the EMF models/workspace etc., to get the extension to my models. But again, the tagged values stay the same after the fresh loading of the profile. So, I understand from that, that the stereotypes and values are being saved into EMF model, but can't be seen after being closed and need to be reloaded again. Hope that I am expressing my problem right? :)
Second thing is, that I don't just want to extend my *.ecore's, meaning not only on meta-model level, but also initialize and later on generate the code. I believe, that this is the main contribution of EMF Profiles, right? :) I haven't gone so far with the code generating, but I have tried to create dynamic instances of "profiled" EMF models to test the stereotypes/extensions. But it didn't work. Maybe, the extensions just don't show up in the .xmi-files and there is a special way or a view for that? I -unfortunately- didn't find anything in the tutorials. I would be very glad, if you could point me to the right direction for this matter.
Hello Philip,thanks again for your response. It was very helpful.But I believe that I need to form my second question again. Before that, what I have managed so far:1. Creating/loading profile application and registering them. (Pretty automatic :))2. Applying the stereotypes of loaded profile applications (which are extending the Ecore itself - i.e. EClass) to different *.ecore models3. Applying the stereotypes of loaded profile applications (which are extending my own created *.ecore models) to the instances of the same *.ecore models
The thing with *.pa.xmi files are also understood and after an initial phase pretty easy to use.So, what I want to do now is to instantiate *.ecore models, which have been extended through corresponding EMF profiles/stereotypes. In other words, I want to take the option 2 above one step further. I am wondering if there is a direct way to achieve this, since the applied extensions (inc. tagged values) are saved seperated (*.pa.xmi) from the ecore model and therefor aren't a part of the metamodel.
Hello Philip,
I don't think that you are understanding me wrong, I just wasn't able to formulate my thoughts right. :) But, for the time being, what you have showed me, is satisfying for my further work.
But I need help regarding a new topic, which actually doesn't have anything directly with the EMF-Profiles itself. I need the most up-to-date version of the plug-in for my further project. So instead of from the update site, I have downloaded the source code from the GIT repository. But unfortunately I don't know the next steps to install the plug-in into my Eclipse development environment from the source code. I would be very glad, if you could show me how I can get this working.