Aleenah
Aleenah

Reputation: 21

How to generate plug-in using .ecore metamodel

I have 2 files, an ecore implementation metamodel and an e-Repository. The e-Repository is provided in EMF format together with the ecore implementation metamodel. I want to browse the contents of this repository and all I know is that I have to generate an Eclipse plugin from the implementation metamodel and with this plugin, I can open the repository and browse its content. But I have no idea how to generate the plugin and proceed with it.

The ecore implementation metamodel was developed using EMF version 2.7 which can be found in Eclipse Indigo SR2, the e-Repository was generated with the same environment.

Can anybody help me with this, please? I have almost no knowledge about working with these meta-models and plug-ins. Any tutorial or steps to follow?

Upvotes: 2

Views: 2387

Answers (2)

Anand Kiran
Anand Kiran

Reputation: 123

So here is what I understood and did.

  1. Create an emf project and select the ISO meta model given from ISO page - Basically simple import.
  • So what it did for me is to create a gen model along with it
  1. After I have opened the gen model ,I right clicked on it and said generate all
  • So now I see three different folders edit editor and tests. proj.edit, proj.editor proj.tests
  1. Followed the instructions in https://www.iso20022.org/sites/default/files/2020-03/Eclipse_plugin_tip.pdf

  2. So what I have tried to do now is to right click on editor project and run it as an eclipse application.

It opened a seperate eclipse 5. And in that other window, I imported ISO repository file into a project and then right clicked on it and open with ISO model editor.

I am not sure what to do next Or how to view the ISO repository file as a model and this is how it appears for me now.

enter image description here

I do see an ISO20022 Editor at the top.in the menu items as shown.

enter image description here .

Upvotes: 0

JamieOBE
JamieOBE

Reputation: 11

Hi Aleenah – Sorry about the slow reply, but just stumbled on this - It looks like you’re trying to get started with the ISO 20022 e-Repository, right? (http://www.iso20022.org/e_dictionary.page)

I'm afraid that there was a bug in the ecore metamodel that caused more recent versions of EMF to (correctly) fail to generate. This bug was fixed last year and I've tested the latest version of the metamodel with the latest (Mars) version of Eclipse Modeling Tools.

So, my advice is to download and try again. If your problem persists, drop a note to the ISO 20022 Registration Authority (mailto:[email protected]) - If they can’t help you, ask them to point you to Jamie and I’ll help you out. Good luck!

Upvotes: 1

Related Questions