|
|
|
Thanks Maxim! Very nice.
When you have a bad script constraint, is there no feedback? I can file issues on these if it would be useful. If there is syntax error then it is reported during SSR constraint editing,
Hmm, this didn't work:
com.intellij.psi.search.searches.ClassInheritorsSearch.search(context).findAll().size() == 1 but the version you put in the newsgroup post did work: com.intellij.psi.search.searches.ClassInheritorsSearch.search(_context_).findAll().size() == 1 with the extra underscores around context. So the first version was an error but not a syntax error? Can the first type of error not be caught? JIRA eats leading / trailing underscores
Maxim, This can be closed....but we still need documentation and much better error checking! I'd be happy to file jira issues for those if it would be helpful to you.
added sample to predefined templates (documentation and other stuff will be handled in other request)
Not sure if you want two new requests or you already have them/on it. If you want new ones, let me know.
What's the name of this template under Existing Templates? I didn't notice it in build 9013 (first 8.0 release).
I must be going blind because I don't see the template in build 9144. What is it named/which category?
Thanks, Jon Existing Templates | class-based | interface that is not implemented
Nice. So in the script text you could adjust the null to a number and change to inequality to get other interesting results. Thanks
|
|||||||||||||||||||||||||||||||||||||||||||||||||
interface $Class$ {}
for Class variable set (groovy) script constraint like:
com.intellij.psi.search.searches.ClassInheritorsSearch.search(_context_).findAll().size() == 1