Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » fullyQualifiedName is null when loading Resource from URI( fullyQualifiedName is null when loading Resource from URI)
fullyQualifiedName is null when loading Resource from URI [message #1388479] Thu, 26 June 2014 14:00 Go to next message
Alex Port is currently offline Alex PortFriend
Messages: 2
Registered: June 2014
Junior Member
var obj = resSet.getResource(tmpUri, true);
obj.allContents.toIterable.filter(MyClass).forEach[o|
var myList = o.getMyList
myList.forEach[e|
// At this point I am getting null for some elements althought it was
//loaded correctly with no errors.

val fqdn = (e as Item).fullyQualifiedName

]
]
Re: fullyQualifiedName is null when loading Resource from URI [message #1388552 is a reply to message #1388479] Thu, 26 June 2014 15:59 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13264
Registered: July 2009
Senior Member
Hi,

can you give a sample grammar and sample model as well


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: fullyQualifiedName is null when loading Resource from URI [message #1390314 is a reply to message #1388552] Sun, 29 June 2014 07:25 Go to previous messageGo to next message
Alex Port is currently offline Alex PortFriend
Messages: 2
Registered: June 2014
Junior Member
Hi.
The grammar is: org.eclipse.xtext.common.Terminals
Can you please elaborate more regarding the model?

Thanks.
Re: fullyQualifiedName is null when loading Resource from URI [message #1390368 is a reply to message #1390314] Sun, 29 June 2014 09:33 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13264
Registered: July 2009
Senior Member
Give me the steps to proproduce your problem e.g.

everything i need to create a program that reproduces it

this might be a grammar (i doubt it is terminals -it has no MyClass)
the sample input model file you have when the error occurs etc


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Infinite Loop in DocumentTokenSource.computeDamageRegion
Next Topic:Getting All DSL Resources in the same Project or dir
Goto Forum:
  


Current Time: Mon Dec 09 21:01:40 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