Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » saving error: object xyz is not contained in a resource[SOLVED]
icon5.gif  saving error: object xyz is not contained in a resource[SOLVED] [message #519106] Sat, 06 March 2010 16:28 Go to next message
daniele Mising name is currently offline daniele Mising nameFriend
Messages: 48
Registered: July 2009
Member
Hi,

I have a strange problem...
when I try to save my editor, an error came up:

The object xyz is not contained in a resource

here is the environment.
http://yfrog.com/1rhelpip

Ok, BOM is not contained directly in Map, but Item yes!
How can I manage this?



[UPDATE]

ok, solved. Sorry...I'm really tired... I forgot to set the link's property "containment=true"

[Updated on: Sat, 06 March 2010 17:06]

Report message to a moderator

Re: saving error: object xyz is not contained in a resource [message #519109 is a reply to message #519106] Sat, 06 March 2010 16:56 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33108
Registered: July 2009
Senior Member
Daniel,

You don't give enough details to know what you're talking about. I
don't know what BOM, Map, or Item are. Nor do I understand temp. What
the error is telling you is that there's some object xyz referenced by
some other object in your resource, but xyz isn't in that resource or
any other resource. Likely xyz.eContainer() == null and for sure
xyz.eResource() is null. Generally xyz will need to be added to a
containment reference of some other object or needs to be directly added
to the root of the resource (such that xyz.eResource != null).


daniele wrote:
> Hi,
>
> I have a strange problem...
> when I try to save my editor, an error came up:
>
> The object xyz is not contained in a resource
>
> here is the environment.
>
>
> Ok, BOM is not contained directly in Map, but Item yes!
> How can I manage this?
>
> I tried to add another class (temp) between BOM e Map, so map
> contained temp and temp contained bom. I had to create 2 write
> transaction each time i added a bom: one for add bom at item and one
> for add bom at temp.
> In that way when I saved i got no errors. But when the editor read the
> .omm file, it lost the link between item and bom. Indeed, I wouldn't
> linke this solution anyway...
>
> Help please...
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: saving error: object xyz is not contained in a resource [message #519111 is a reply to message #519109] Sat, 06 March 2010 17:05 Go to previous message
daniele Mising name is currently offline daniele Mising nameFriend
Messages: 48
Registered: July 2009
Member
You've right, I linked an image of the situation, with the edit_diagram but the img isn't visible..
how however I fixed the problem: I didn't set the flat containment to true. very stupid error that let me wasted a lot of time..
Thanks anyway Ed.
Previous Topic:Changing programmaticaly the EList of a node
Next Topic:Manage non-graphical nodes
Goto Forum:
  


Current Time: Tue Mar 19 10:38:01 GMT 2024

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

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

Back to the top