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

Hi all
I 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