Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Compare Editor without Semantic Highlighting
Compare Editor without Semantic Highlighting [message #1702306] Tue, 21 July 2015 13:16 Go to next message
Jiang Li is currently offline Jiang LiFriend
Messages: 27
Registered: November 2014
Junior Member
I want to compare two documents of my DSL. But all of the "semantic highlightings" don't work. Only the highlightings of tokens are shown.

In my DSL I have implemented "ISemanticHighlightingCalculator" to highlight my semantic model.

How can I show the semantic highlighting?


Re: Compare Editor without Semantic Highlighting [message #1702511 is a reply to message #1702306] Wed, 22 July 2015 19:03 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Since the compare is done on file basis and not on project basis the file parsed has not enhough context to be more that just parsed (linking , sem highlighting .... makes no sence since there is no context)

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Compare Editor without Semantic Highlighting [message #1702541 is a reply to message #1702511] Thu, 23 July 2015 04:35 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Are you sure?

Recent innovations supported by GIT and used by EMF Compare support a
coherent model of multiple files.

The intent is to ensure that a group of related files are committed as a
group rather than piecemeal and consequently inconsistently.

This a very challenging and worthy goal. It is unfortunately enabled by
default causing difficulties when the more traditional file-level
compare is required.

That said the default model level begaviour should support semantic
highlighting.

Regards

Ed Willink

On 22/07/2015 21:03, Christian Dietrich wrote:
> Since the compare is done on file basis and not on project basis the
> file parsed has not enhough context to be more that just parsed (linking
> , sem highlighting .... makes no sence since there is no context)
Re: Compare Editor without Semantic Highlighting [message #1702543 is a reply to message #1702541] Thu, 23 July 2015 05:08 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
At least the implementation subclass of xtexteditor for the comparison suggests that.
Feel free to file a enhancement request


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Containment references with containment proxies in Xtext grammer
Next Topic:error in xtext editor
Goto Forum:
  


Current Time: Fri Apr 26 09:28:00 GMT 2024

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

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

Back to the top