| corrupt generated editor? [message #392189] | 
Fri, 08 April 2005 11:02   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hi, 
 
I've generated an editor for my business metamodel. Unfortunately  
something seems to be wrong, but I can't find out what it is... 
 
When I create a new model, using the generated wizard, and add the  
element 'Package' as the root element, everything is fine. 
When I add an instance of 'Entity' to the 'children' reference of my  
root element 'Package' (which is a containment reference), the editor  
starts to behave strange: 
- Editing in the properties view will not mark the editor dirty anymore 
- Edited References inside the property editor (not containment) will  
not be saved 
- I can't delete/cut the 'Entity' (action is inaktive) 
- The Error Log says: The object  
'de.lohndirekt.meta.business.impl.EntityImpl@11b9cfd (name: Account)' is  
not contained in a resource. 
 
But it is contained, isn't it? 
 
Any ideas? 
 
regards, 
Sven
 |  
 |  
  | 
| Re: corrupt generated editor? [message #392193 is a reply to message #392189] | 
Fri, 08 April 2005 12:13   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Sven, 
 
It really sounds most like the Package to Entity reference is not a  
containment.  Are there no other preceding stack traces with hints.  I'd  
clear the log, and see if there are any stack traces right after you  
first create an entity.  If saving right after that produces the  
exception you show, it must be the case that you've added the new entity  
to a non-containment reference... 
 
 
Sven Efftinge wrote: 
 
> Hi, 
> 
> I've generated an editor for my business metamodel. Unfortunately  
> something seems to be wrong, but I can't find out what it is... 
> 
> When I create a new model, using the generated wizard, and add the  
> element 'Package' as the root element, everything is fine. 
> When I add an instance of 'Entity' to the 'children' reference of my  
> root element 'Package' (which is a containment reference), the editor  
> starts to behave strange: 
> - Editing in the properties view will not mark the editor dirty anymore 
> - Edited References inside the property editor (not containment) will  
> not be saved 
> - I can't delete/cut the 'Entity' (action is inaktive) 
> - The Error Log says: The object  
> 'de.lohndirekt.meta.business.impl.EntityImpl@11b9cfd (name: Account)'  
> is not contained in a resource. 
> 
> But it is contained, isn't it? 
> 
> Any ideas? 
> 
> regards, 
> Sven
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.07688 seconds