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
Hello,

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: 13641
Registered: July 2009
Senior Member
hi,

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: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
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: 114
Registered: February 2016
Senior Member
Hello Albert,

You can find more information about this topic in the following Xtext issue:
https://github.com/eclipse/xtext-eclipse/issues/1093

Hope that helps,
Tamás
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: Wed Oct 28 03:36:19 GMT 2020

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

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

Back to the top