Well...yes, I know that method is there. I should have been more clear. There USED to be a method where you passed in a string and a boolean indicating case sensitivity that allowed you to lookup names like your little goto class dialog. i.e., this message from Valentin Kipiatkov:
Is there anything more I can do to articulate my question better? When you flat out remove a method from the API it seems reasonable to expect you guys to help us figure out what we should use instead.
PsiShortNamesCache.getAllClassNames()
--
Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"
"Kirk Woll" <kirk@digimax.com> wrote in message
news:731482.1065825592580.JavaMail.itn@is.intellij.net...
Well...yes, I know that method is there. I should have been more clear. There USED to be a method where you passed in a string and a boolean indicating case sensitivity that allowed you to lookup names like your little goto class dialog. i.e., this message from Valentin Kipiatkov:
http://www.intellij.net/forums/thread.jsp?forum=18&thread=18684&message=410860&q=50736953686f72744e616d65734361636865#410928
And specifically, Mike Aizatsky indicates getAllClassNames would not be a good method to use:
http://www.intellij.net/forums/thread.jsp?forum=18&thread=18684&message=410860&q=50736953686f72744e616d65734361636865#410860
I want the method that USED to have the signature:
String[] getClassNames(String s, boolean b);
Please help, as this is preventing me from further work with my plugin.
Is there anything more I can do to articulate my question better? When you flat out remove a method from the API it seems reasonable to expect you guys to help us figure out what we should use instead.
There is no such method anymore. The whole list of methods in
PsiShortNamesCache currently is:
PsiFile[] getFilesByName(String name);
String[] getAllFileNames();
PsiClass[] getClassesByName(String name, GlobalSearchScope scope);
String[] getAllClassNames();
PsiMethod[] getMethodsByName(String name, GlobalSearchScope scope);
String[] getAllMethodNames(boolean searchInLibraries);
PsiField[] getFieldsByName(String name, GlobalSearchScope scope);
String[] getAllFieldNames(boolean searchInLibraries);
You may use getAllClassNames() and choose only those names that suit your
needs.
--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"
"Kirk Woll" <kirk@digimax.com> wrote in message
news:15687449.1065986240562.JavaMail.itn@is.intellij.net...
There USED to be a method where you passed in a string and a boolean
indicating case sensitivity that allowed you to lookup names like your
little goto class dialog. i.e., this message from Valentin Kipiatkov:
>
>
http://www.intellij.net/forums/thread.jsp?forum=18&thread=18684&message=410860&q=50736953686f72744e616d65734361636865#410928
>
good method to use:
>
>
http://www.intellij.net/forums/thread.jsp?forum=18&thread=18684&message=410860&q=50736953686f72744e616d65734361636865#410860
>
>
>
Hmm, ok, well thank you for your response. Is this the method you guys use to implement the Goto Class/File dialogs?
use to implement the Goto Class/File dialogs?
Yes. Go to Class uses
PsiClass[] getClassesByName(String name, GlobalSearchScope scope);
String[] getAllClassNames();
and Go to File
PsiFile[] getFilesByName(String name);
String[] getAllFileNames();
--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"
"Kirk Woll" <kirk@digimax.com> wrote in message
news:6788172.1066150798449.JavaMail.itn@is.intellij.net...
use to implement the Goto Class/File dialogs?
Ok, I guess I can binary search on the returned array to check if it matches a prefix. Thanks again for the reply, Valentin.
Kirk