Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Resolving proxies
Resolving proxies [message #1219993] Sun, 08 December 2013 16:07 Go to next message
rohit ahuja is currently offline rohit ahujaFriend
Messages: 27
Registered: February 2013
Junior Member
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 16:57 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13667
Registered: July 2009
Senior Member
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


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Trouble emitting template code after splitting Generator Xtend into two pieces
Next Topic:xtext rename participant
Goto Forum:
  


Current Time: Fri Dec 04 08:56:26 GMT 2020

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

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

Back to the top