Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Content assist testing with 2 grammars(Content assist testing with 2 grammars)
Content assist testing with 2 grammars [message #1828618] Mon, 15 June 2020 09:49 Go to next message
Albert K is currently offline Albert KFriend
Messages: 2
Registered: May 2020
Junior Member

In my DSL I use two grammars MyDsl (main) and OtherDsl which is an external grammar.

I have made some custom content assist which gives suggestions based on cross-references which are available in OtherDsl files.

Currently I am only able to test the content assist only by using MyDsl files.

My question is when testing the content assist UI, how can I register the OtherDsl grammar and how can I add OtherDsl files to the resource set so that I can test the content assist suggestions?

Thank you in advance.
Re: Content assist testing with 2 grammars [message #1828619 is a reply to message #1828618] Mon, 15 June 2020 09:57 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13724
Registered: July 2009
Senior Member

this should work out of the box (assuming you have configured the workflow correct)
(you might need to merge(copy) plugin.xml_gen files to plugin.xml)

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Re: Content assist testing with 2 grammars [message #1828626 is a reply to message #1828619] Mon, 15 June 2020 10:41 Go to previous message
Tamas Miklossy is currently offline Tamas MiklossyFriend
Messages: 125
Registered: February 2016
Senior Member
Hello Albert,

You can find more information about this topic in the following Xtext issue:

Hope that helps,
Previous Topic:Formatting and quickfix with model modification
Next Topic:Code signature error: could not load SWT library in OS X Catalina
Goto Forum:

Current Time: Tue Jan 26 00:25:39 GMT 2021

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

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

Back to the top