Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Resolved proxy
Resolved proxy [message #654487] Wed, 16 February 2011 00:58 Go to next message
AJ  is currently offline AJ Friend
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30541
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?
Previous Topic:[EMF-URI] Copy folder's contents through URIs
Next Topic:[CDO] website, 1 point for improvement
Goto Forum:
  


Current Time: Mon Oct 14 17:57:53 GMT 2019

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

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

Back to the top