Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Content Assist not working for Cross Reference(White space in cross reference stops content assist from proposing the cross reference.)
Content Assist not working for Cross Reference [message #1809481] Tue, 16 July 2019 18:02 Go to next message
Jeffrey H is currently offline Jeffrey HFriend
Messages: 2
Registered: July 2019
Junior Member
I'm working on integrating a pre-existing DSL with the following grammar rule
TermDeclaration:
	'term' name=STRING '{'
		constraintsDeclaration=ConstraintsDeclaration
	'}'
;

And this is how I am integrating it into my DSL
ExternalDSLRule:
	term = [externalDSL::TermDeclaration]
;


I have a file of the external DSL with TermDeclarations such as
term "Sign Off" {
	constraints {
	}
}
term "Request" {
	constraints {
	}
}

However, the content assist does not propose 'Sign Off' as one of the TermDeclarations, but it does suggest the 'Request' term. And if I remove the space in 'Sign Off' then the content assist does suggest it. Any help would be appreciated, thanks!



Re: Content Assist not working for Cross Reference [message #1809486 is a reply to message #1809481] Tue, 16 July 2019 18:32 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13124
Registered: July 2009
Senior Member
https://www.dietrich-it.de/xtext/2015/03/19/xtext-and-strings-as-cross-references.html


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Content Assist not working for Cross Reference [message #1809494 is a reply to message #1809486] Tue, 16 July 2019 21:54 Go to previous message
Jeffrey H is currently offline Jeffrey HFriend
Messages: 2
Registered: July 2019
Junior Member
Thank you!
Previous Topic:Package URI is not properly generating
Next Topic:Auto-Completion cross-reference from a non-xtext model
Goto Forum:
  


Current Time: Thu Sep 19 14:35:26 GMT 2019

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

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

Back to the top