Yes, XText support hover detection. There are some sources in internet, that might be helpful for you.
xtext: detecting when mouse over a token in editor
-
01-09-2022 - |
Question
I want to achieve following functionality:
User places the mouse cursor over a text item in the editor and this is being detected automatically, triggering a menu item to be enabled in the menu (when user moves mouse away, the menu item is disabled again).
As I'm a little new to xtext and RCP in general, I don't know where to start. I only don't know how to implement detecting if the cursor is over a certain element in my DSL code. Is there any way to achieve this?
Kind regards, Marko
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow