Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Access to EMF models
Access to EMF models [message #396006] Tue, 04 October 2005 17:09
pietro contini is currently offline pietro contini
Messages: 6
Registered: July 2009
Junior Member
Hi,

I built an EMF project in which my .ecore model refers a class defined into
a model contained in another EMF project (and package).

For example "My2.ecore" defined into "My2Project" refers a class contained
into "My1.ecore" defined in "My1Project".

In the properties of "My2Project" I specified, in the section "Java Build
Path", a link to the "My1Project", with no access rules defined.

When I open the "My2.genmodel", I obtain this error:

Model Problems
The package 'platform:/resource/My1Project/src/My1.ecore#/ is needed but
isn't accessible from the Generator model.

Can I solve this problem ?

Thanks for the help.

Regards.

Pietro
Re: Access to EMF models [message #396013 is a reply to message #396006] Tue, 04 October 2005 12:09 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 24540
Registered: July 2009
Senior Member
Pietro,

It sounds like My2.genmodel doesn't have a GenPackage for the EPackage
in My1.ecore.


Pietro wrote:

>Hi,
>
>I built an EMF project in which my .ecore model refers a class defined into
>a model contained in another EMF project (and package).
>
>For example "My2.ecore" defined into "My2Project" refers a class contained
>into "My1.ecore" defined in "My1Project".
>
>In the properties of "My2Project" I specified, in the section "Java Build
>Path", a link to the "My1Project", with no access rules defined.
>
>When I open the "My2.genmodel", I obtain this error:
>
>Model Problems
>The package 'platform:/resource/My1Project/src/My1.ecore#/ is needed but
>isn't accessible from the Generator model.
>
>Can I solve this problem ?
>
>Thanks for the help.
>
>Regards.
>
>Pietro
>
>
>
>
Previous Topic:Free UML tools can work with EMF
Next Topic:use of dynamic templates with Java 5
Goto Forum:
  


Current Time: Tue May 21 15:01:43 EDT 2013

Powered by FUDForum. Page generated in 0.01708 seconds