[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: New/Reload a .genmodel

Sorry for the error in the scenario, corrected bellow:

Jorge Dieguez wrote:

Hello All,

I'm generating a viewer from "ecore diagram -> ecore -> genmodel".

I have three classes i.e. A, B, C with references as follow:

A -> B (containment=true)

A -> C (containment=true)

B -> C (containment=False) thus, B and C child classes of A class

if I made:

A -> B (containment=true(not changed))

A -> C (containment=false) and,

B -> C (containment=true) thus, C child of B and B child of A

these changes does not get reflected in the view if I reload genmodel i.e. still depicting C and B as child classes of A. Also, If I try to save the viewer then I get:
org.eclipse.emf.ecore.xmi.DanglingHREFException: The object
'wwww.impl.EClass2Impl@1426780 (EAttribute0: null)' is not contained in a resource.

This is solved only if I create a new model.

Can you tell me when should or should not reload be used? what's the rationale of reload?

Many thanks for your help,

Jorge