[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Referencing model elements (generated editor vs. editor on the fly)

Hi,

I have the following problem: I have two meta models (ecore models) A and 
B. The metamodel B references elements of the metamodel A.

Now I wanna create instances. For metamodel A I generate the EMF editor. 
For metamodel no editor is needed (the instance of the metamodel is 
created in another way).

Ok, now I create an instance of the metamodel A with the generated EMF 
editor. After that I load the created instance of the metamodel B in the 
resource set. So now both, an instance of metamodel A (A_I) and metamodel 
B (B_I) are visible within the editor. As I mentioned the metamodel B 
references elements of the metamodel A. I wanna set some elements in B_I 
to use elements of A_I, but this is not possible. The elements of A_I are 
not available in B_I.

Is it because A_I is used with a generated EMF editor and B_I isn't? 
Because if I generate an EMF editor for B too I can choose the elements. 

And if I use no generated editor for both it is working too. Obviously 
there is a mismatch of the metamodel package if I use a generated editor 
and a editor on the fly.

Any idea how I can fix this issue?

Greetings

Michael