Geek
Geek

Reputation: 209

Reference between two ecore

I have A.ecore in which I created classes and ORBAC.ecore in which there is rules and permissions classes

How can I make a reference so that a class from A.ecore can refer to class permission from ORBAC.ecore

Upvotes: 1

Views: 448

Answers (1)

Didier Vojtisek
Didier Vojtisek

Reputation: 61

Using the Ecore editor, open A.ecore then right click, Load Resource...

you will have the possibility to load ORBAC.ecore (Browse Target Platform package, Registered Packages, File system or Workspace)

Once loaded, you'll be free to make references to classes defined in ORBAC.ecore.

Please note that the whay you load the additional resource may have some impacts when deploying your metamodels (and containing plugins). This is because Eclipse will use different URI scheme. (platform:/resource/..., platform:/plugin/..., registered nsUri, ...)

Upvotes: 2

Related Questions