Search code examples
eclipsedslxtextxtend

Xtext auto-suggest value


I am working on Xtext project. I need feature for my variable declaration. Assume I am using my DSL like one below

LifeEra:Teenage
Age:(while cursor is here)

I wonder if I can get pop-up down here and suggesting 16 since LifeEra entered Teenage. Is there anyway I may achieve that.

Hope my question is clear.

Thank you.


Solution

  • As I understood, code complete from dynamic values is not possible only using Xtext. But developing an Eclipse plugin for your own DSL may help. I couldn't find any other way.