Is it possible to bring a file's content (Say the file has a list of options)into auto completion menu?

Hi,
We are working on a project which has a back end storage. Similar to a movie database. If i want to pick a movie to read its review, I must be able to pick it from the auto completion menu. The list of stored movies can be made available in a file. I wish to know if there is some way to get that content into the auto completion menu.

Thanks..
4 comments
Comment actions Permalink
I suggest you to implement custom persistence loading model content from the database. In the end you will have model with all movies in it, so you can use MPS way to auto-complete reference there.
0
Comment actions Permalink
Thanks for the reply Alex.
What is the 'MPS way to auto-complete reference'? I am new to this tool. Some kind of an example would be of great help.
0
Comment actions Permalink
What is "custom persistence loading model"? How do i use it?
0
Comment actions Permalink
"Custom persistence" allows your languages to load/store the model in other formats than the MPS internal XML one, such as plain text files or database. You may check out http://confluence.jetbrains.com/display/MPSD30/Custom+Persistence+Cookbook for details on how to do that.
0

Please sign in to leave a comment.