Universal-Variability-Language / uvl-lsp

Language server protocol for the Universal Variability Language (UVL)
MIT License
10 stars 4 forks source link

Syntax Highlighting for Eclipse IDE #90

Open SundermannC opened 1 year ago

SundermannC commented 1 year ago

Currently, the integration of UVLS in Eclipse is very limited and does not support syntax highlighting: https://github.com/Universal-Variability-Language/uvl-lsp/tree/master/editors/eclipse

As Eclipse is often used for feature modelling (e.g., for FeatureIDE which supports UVL), full support for Eclipse would be valuable. @TobiUUlm suggested using developing a custom editor with https://www.vogella.com/tutorials/EclipseEditors/article.html

TobiUUlm commented 1 year ago

I already started to silently implement this. You can find the original commit here which was merged in this commit.
It's way more work than anticipated.

Under uvl-lsp/editors/eclipse you will find the plugin project that you can import and improve. I have not documented any of this, since it does not work perfectly. In summary it's some kind of parser (which makes it unnecessarily complicated for simple Syntax Highlighting) and you can apply different colors to some tokens.
In theory, you should be able to export this plugin (de.uulm.sp.uvl that is) and import it via Help->Install new software.. -> file (...) or simply run it from eclipse itself for debugging purposes.
It should look like this:

2023-10-06 10_25_32-runtime-EclipseApplication - Eclipse IDE

Plugin Development for Eclipse is another topic for itself.