Skip to main content



      Home
Home » Modeling » EMF » corrupt generated editor?
corrupt generated editor? [message #392189] Fri, 08 April 2005 11:02 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:getFeatureID question
Next Topic:URI for saving objects into .metadata? / using logical URI's when saving Resource?
Goto Forum:
  


Current Time: Tue Nov 04 08:39:16 EST 2025

Powered by FUDForum. Page generated in 0.07483 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top