|Re: fail in saving diagram file [message #207177 is a reply to message #207170]
||Fri, 26 September 2008 12:49
| Ed Merks
Registered: July 2009
This implies that you have a non-containment reference to a Datadef
instance and that Datadef instance isn't contained by anything. I.e.,
its eContainer is null and its eResource is null. So that object will
never be serialized because only things for which eResource() != null
will be serialized, i.e., only things directly or indirectly contained
by a resource will be serialized. Hence a reference to such an object
can't be serialized either, since normally such a reference would need
to serialize a reference and naturally if eResource() is null, that's
not possible. So be sure to add this object either directly to the
resource's contents or to some containment reference on a parent object
that's directly or indirectly contained by a resource.
> when I run a generated grapihical editor and try to save it ,the
> following warning pop up.What is the reason?
> save could not be completed.
> Reason: the
> is not contained in a resource'
> data,sourceFT,targetFT are the attributes that Datadef inherited from
> its super class CObjects.
> How to solve this?
> Thanks a lot!
Professional Support: https://www.macromodeling.com/
Powered by FUDForum
. Page generated in 0.01359 seconds