Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Semantic Highlighting using Xtext 2.11
Semantic Highlighting using Xtext 2.11 [message #1754529] Sun, 19 February 2017 15:17 Go to next message
Desmond Hume is currently offline Desmond HumeFriend
Messages: 9
Registered: October 2016
Junior Member
Hi everyone,

how can I implement semantic highlighting using Xtext 2.11?

When I try to bind the Calculator and Configuration as for instance shown in [1], I get errors because those methods do not exist AbstractExampleDslUiModule and cannot be overridden.

I can only find information regarding Xtext 2.9 where the ISemanticHighlightCalculator has been moved to the xtext.ide.editor package. Though, ISemanticHighlightConfiguration has not been moved. This makes me wondering if this is still the right approach to highlighting?

[1] https://github.com/xtext/seven-languages-xtext/blob/master/languages/org.xtext.template.ui/src/org/xtext/template/ui/TemplateUiModule.xtend
Re: Semantic Highlighting using Xtext 2.11 [message #1754530 is a reply to message #1754529] Sun, 19 February 2017 15:19 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
It looks like you have some basic misunderstanding of how bindings work

You can add a bind method for every bind you wish for
There is no need to have a method in the superclass

So simply omit the override and you should be fine


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Semantic Highlighting using Xtext 2.11 [message #1754535 is a reply to message #1754530] Sun, 19 February 2017 17:33 Go to previous message
Desmond Hume is currently offline Desmond HumeFriend
Messages: 9
Registered: October 2016
Junior Member
Yes, thank you! Don't know why I was so concentrated on overwriting that methods.
Previous Topic:Autocompletion on deployed xtext feature not working
Next Topic:[SOLVED] Cannot cross reference element composed of multiple IDs
Goto Forum:
  


Current Time: Fri Apr 26 14:22:58 GMT 2024

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

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

Back to the top