Resolved proxy [message #654487] |
Wed, 16 February 2011 00:58 |
AJ Messages: 77 Registered: July 2009 |
Member |
|
|
Is there a way to determine if a containment reference used to be a proxy after it has been resolved?
In other words, after the proxy has been resolved, eProxyURI() returns null and eIsProxy() returns false. So, I can only determine if the contained target used to be a cross-resource proxy by checking if the container and the target belong to different resources.
(!target.eResource().equals(container.eResource()))
Is this the only way?
[Updated on: Wed, 16 February 2011 01:01] Report message to a moderator
|
|
|
Re: Resolved proxy [message #654533 is a reply to message #654487] |
Wed, 16 February 2011 08:41 |
Ed Merks Messages: 33137 Registered: July 2009 |
Senior Member |
|
|
AJ,
Comments below.
AJ wrote:
> Is there a way to determine if a containment reference used to be a
> proxy after it has been resolved?
>
> In other words, after the proxy has been resolved, eProxyURI() returns
> null and eIsProxy() returns false. So, I can only determine if the
> contained target used to be a cross-resource proxy by checking if the
> container and target belong to different resources.
Yes, that's the only way.
>
> (!target.eResource().equals(container.eResource()))
You can use !=.
> Is the only way?
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.01900 seconds