How do I attach some cached information to an Eclipse editor or resource?
问题 I'm developing a DSL using Eclipse's Xtext framework. For the content assist/code completion, I have an expensive process which generates me a list of strings. How do I cache the result of that process? Long story: My DSL interfaces with Groovy scripts. The scripts provide methods which I offer in certain places in my DSL. This is pretty slow, even when I use a regexp to parse the methods of the scripts. So I'd like to cache the results of the script analysis. From my analysis, the analysis