Recommended terminal value for auto-completion [message #1820843] |
Thu, 30 January 2020 04:40  |
Eclipse User |
|
|
|
Hello,
I have simple model for testing auto-complition string values.
grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.common.Terminals
generate myDsl "http://www.xtext.org/example/mydsl/MyDsl"
Model:
items+= (Entity | Dictionary | Rule)*
;
Entity:
'entity' name=ID
;
Dictionary:
'RecommendedValues' 'for' entity=[Entity|ID]
'[' values+= STRING+ ']'
;
Rule:
'Selected' 'value' 'for' entity=[Entity|ID] '=' refValue=STRING
;
Is it possible implement auto-completion in UI with list of 'RecommendedValues' but with possibility to insert arbitrary value?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07480 seconds