[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.emf] Re: [PROXY] How to get the proxy uri of the referred objects without resolving them

i'll try it
 
Thanks
 
"Frank Budinsky" <frankb@xxxxxxxxxx> wrote in message news:3F54D32C.54C1C04B@xxxxxxxxxx...
Joseph,

You should call col.basicIterator() instead of col.iterator().

Frank.
 

Joseph Khalil wrote:

Hi allI have this situation , i have an eobject that refers to other eobjects using a non containment uni directional many reference.I want to get the uri of these objects without actualy resolving them. i tried

Collection col=(Collection )eObject.eGet(ref,false);

it didn't resolve them , but when i tried to iterate on the collection to gather the proxy URIs,  this iteration resolved them

printEObjectsCollection(col,System.out);

public static void printEObjectsCollection (Collection col,PrintStream ps){

ps.println("\n\nsize="+col.size());

for(Iterator i=col.iterator();i.hasNext();){

EObject eobj=(EObject)i.next(); <<<<< this resolved the eobj

 InternalEObject intEObj=(InternalEObject)eobj;

 ps.println(eobj);

 ps.println("proxy="+eobj.eIsProxy()+" URI="+intEObj.eProxyURI());

}
 
 

can any one help me ??
 
 

Best regards ,

Joseph