Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Resolving proxies
Resolving proxies [message #1219993] Sun, 08 December 2013 11:07 Go to next message
Eclipse UserFriend
Hi All,

I have some problem regarding resolving proxies of cross emf references in Xtext.
Suppose class A has a cross reference of class B with ecore attrributes "resolve proxies"= "true", something like below. The reference is in different documents.

A: b=[B]
;

B: name =ID value=INT,


-------------------------------------
if(A.getB().eIsProxy()){
System.out.println("true");
}

EcoreUtil.resolveAll(A.getB())

if(A.getB().eIsProxy()){
System.out.println("true");
}

----------------------
Output :
true
true

I think i am missing something. What can be done to resolve this?

Thanks in Advance,
Rohit

Re: Resolving proxies [message #1219994 is a reply to message #1219993] Sun, 08 December 2013 11:57 Go to previous message
Eclipse UserFriend
Hi this should work out of the box (I assume you run this code
standalone) if you add all (both?) Resources to the same resource
set.

This I all I can say so far with so few context you gave

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de
Previous Topic:Trouble emitting template code after splitting Generator Xtend into two pieces
Next Topic:xtext rename participant
Goto Forum:
  


Current Time: Fri Jul 04 06:04:56 EDT 2025

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

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

Back to the top