Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Qualified Name Provider(Retrieval of QualifiedNames)
Qualified Name Provider [message #1730223] Fri, 22 April 2016 12:20 Go to next message
ayman salah is currently offline ayman salahFriend
Messages: 131
Registered: June 2015
Senior Member
Hello,

I have a lot of scoping going on in my language. I have wrote my own Qualified Name provider for some classes in my language. Now in code generation I would like to use the qualified names I have assigned to each of the objects. I have no idea how can I.

Something like

MYDSLQualifiedNameProvider.getQualifiedName(obj)


Thanks.
Re: Qualified Name Provider [message #1730224 is a reply to message #1730223] Fri, 22 April 2016 12:22 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13186
Registered: July 2009
Senior Member
inject org.eclipse.xtext.naming.IQualifiedNameProvider

and call getFullyQualifiedName(EObject)


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Qualified Name Provider [message #1730225 is a reply to message #1730224] Fri, 22 April 2016 12:41 Go to previous messageGo to next message
ayman salah is currently offline ayman salahFriend
Messages: 131
Registered: June 2015
Senior Member
It says undefined method
  • Attachment: Capture.PNG
    (Size: 22.43KB, Downloaded 139 times)
Re: Qualified Name Provider [message #1730226 is a reply to message #1730225] Fri, 22 April 2016 12:45 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13186
Registered: July 2009
Senior Member
no @Inject extension IQualifiedNameProvider

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Qualified Name Provider [message #1730228 is a reply to message #1730226] Fri, 22 April 2016 13:04 Go to previous message
ayman salah is currently offline ayman salahFriend
Messages: 131
Registered: June 2015
Senior Member
Thanks a lot it worked. I'm sorry i misread inject with import.

[Updated on: Fri, 22 April 2016 13:04]

Report message to a moderator

Previous Topic: 15 Minute Tutorial Extended(Problems with the Generator)
Next Topic:Providing text through JavaScript
Goto Forum:
  


Current Time: Wed Nov 13 09:33:37 GMT 2019

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

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

Back to the top