Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext prefences pages(Create a Preferences pages for my DSL)
Xtext prefences pages [message #1766656] Sat, 24 June 2017 07:01 Go to next message
Yves LEDUC is currently offline Yves LEDUCFriend
Messages: 56
Registered: May 2015
Member
I wrote a DSL and I have a problem to complete it with templates as I wish, ie like this in the Preferences dialog:
Window> Preferences and in the Algorithmic> Templates dialog
By default in an Xtext project this gives something like below based on:
org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage
That I can populate with personal templates.

What I want to do is have three types of templates sorted by category:
• Code
• Comments
• Files
In each of its categories then only the templates of the category are displayed.
I have not found how to filter the output of XtextTemplatePreferencePage to get this.
Thank you in advance
Re: Xtext prefences pages [message #1766657 is a reply to message #1766656] Sat, 24 June 2017 07:56 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
If I knew an answer I would have answered to the other questions you posted on this topic
Xtext uses or or less a default template preference page from eclipse
So you should have a look at what the code does

Maybe you can build some filtering delegates/wrapper about the pref store / template registry Params
Or the classes have already an option for that
Or there are other subclasses of the common eclipse class
That do that


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:syntax highlighting for different groups of keywords
Next Topic:Question concerning package for IValueConverter
Goto Forum:
  


Current Time: Tue Mar 19 07:35:12 GMT 2024

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

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

Back to the top