Skip to main content



      Home
Home » Modeling » EMF » Resolved proxy
Resolved proxy [message #654487] Tue, 15 February 2011 19:58 Go to next message
Eclipse UserFriend
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: Tue, 15 February 2011 20:01] by Moderator

Re: Resolved proxy [message #654533 is a reply to message #654487] Wed, 16 February 2011 03:41 Go to previous message
Eclipse UserFriend
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?
Previous Topic:[EMF-URI] Copy folder's contents through URIs
Next Topic:[CDO] website, 1 point for improvement
Goto Forum:
  


Current Time: Mon Jul 07 23:58:51 EDT 2025

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

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

Back to the top