Custom Content Assist in Xtext [message #1724033] |
Sat, 20 February 2016 00:33  |
Eclipse User |
|
|
|
Hi,
I wanted to customize the content assist for argType where it can give different options depending on the command. (For example, if command "create" is typed, only "file, folder, ..." is shown for argType in the content assist)
Below is my grammar:
Model:
command+=Commands;
Commands:
command= ('create'|'close'|'open'|'copy');
name = ID
"{"
argtlist+=Arg*
"}"
;
Arg:
argType = ID
argName = STRING
;
The outcome i wanted will look something like this:
create testing {
file "File1" //only argType file and folder is shown in content assist
folder "Folder" //only argType file and folder is shown in content assist
}
Is it possible to achieve something like that in content assist?
Thanks in advanced for any guidance!
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07582 seconds