Skip to main content



      Home
Home » Modeling » TMF (Xtext) » DSL autocompletion to open custom Dialogs
DSL autocompletion to open custom Dialogs [message #1815317] Mon, 30 September 2019 09:32 Go to next message
Eclipse UserFriend
Hello together,

are there a way to enhanced the xtext dsl autocompletion on some fields, e.g.

my dsl grammar uses this syntax:

Dialog{
    color: #121212;
    path: "C:\Progamm Files\"
}


I want to write on the "color:" a proposal to open a SWT Color Dialog or on "path:" to open the SWT FileDialog to choose the path as String.

Is it possible to enhanced the generated dsl xtext ide plug-in?

Bets regards
dimg
Re: DSL autocompletion to open custom Dialogs [message #1815319 is a reply to message #1815317] Mon, 30 September 2019 09:59 Go to previous messageGo to next message
Eclipse UserFriend
Yes, this is possible. Customize your content assist provider and use the appropriate dialogs from the Eclipse platform.
Re: DSL autocompletion to open custom Dialogs [message #1815329 is a reply to message #1815319] Mon, 30 September 2019 13:22 Go to previous messageGo to next message
Eclipse UserFriend
See also https://zarnekow.blogspot.com/2011/06/customizing-content-assist-with-xtext.html?m=1
Re: DSL autocompletion to open custom Dialogs [message #1815368 is a reply to message #1815329] Tue, 01 October 2019 09:13 Go to previous message
Eclipse UserFriend
Thank you very much, it works!
Previous Topic:Serializing Model into Resource
Next Topic:Polymorphic Cross-Reference
Goto Forum:
  


Current Time: Sat Apr 26 04:25:17 EDT 2025

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

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

Back to the top