Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Remove items in Preferences(Remove items in Preferences)
Remove items in Preferences [message #1729987] Wed, 20 April 2016 16:32 Go to next message
Jia Poh Kow is currently offline Jia Poh KowFriend
Messages: 25
Registered: November 2015
Junior Member
Hi,

I extended DefaultHighlightingConfiguration in order to get the syntax highlighting run. I also noticed that by going to Windows > Preferences, it will allow us to customize the color for each token for the dsl.

As shown in the attachment,
compiler, refactoring, syntax coloring and template
are generated as options in the preference dialog.

However, I would only require syntax coloring to exist in my case.
How could I make this happen?

Thank you
  • Attachment: Capture.PNG
    (Size: 66.14KB, Downloaded 312 times)
Re: Remove items in Preferences [message #1729996 is a reply to message #1729987] Wed, 20 April 2016 18:11 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13207
Registered: July 2009
Senior Member
in plugin xml you find

<extension point="org.eclipse.ui.preferencePages">
<page
category="org.xtext.example.mydsl10.MyDsl"
class="org.xtext.example.mydsl10.ui.MyDslExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferencePage"
id="org.xtext.example.mydsl10.MyDsl.refactoring"
name="Refactoring">
<keywordReference id="org.xtext.example.mydsl10.ui.keyword_MyDsl"/>
</page>
</extension>
<extension point="org.eclipse.ui.preferencePages">
<page
category="org.xtext.example.mydsl10.MyDsl"
class="org.xtext.example.mydsl10.ui.MyDslExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage"
id="org.xtext.example.mydsl10.MyDsl.compiler.preferencePage"
name="Compiler">
<keywordReference id="org.xtext.example.mydsl10.ui.keyword_MyDsl"/>
</page>
</extension>

etc


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Remove items in Preferences [message #1730027 is a reply to message #1729996] Thu, 21 April 2016 04:31 Go to previous message
Jia Poh Kow is currently offline Jia Poh KowFriend
Messages: 25
Registered: November 2015
Junior Member
okok
Thankz Christian for your quick support...
Really appreciate your help
Previous Topic:Refering to UML elements
Next Topic:Lexical Hightlighting
Goto Forum:
  


Current Time: Wed Nov 20 06:39:33 GMT 2019

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

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

Back to the top