Skip to main content



      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 05:49 Go to next message
Eclipse UserFriend
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 05:57 Go to previous messageGo to next message
Eclipse UserFriend
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)
Re: Content assist testing with 2 grammars [message #1828626 is a reply to message #1828619] Mon, 15 June 2020 06:41 Go to previous message
Eclipse UserFriend
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: Sat Jul 05 03:27:51 EDT 2025

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

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

Back to the top