Caml case completion

hi all
i 'm trying to provide the caml case completion in a textfield of a dialog box ,is it possible?, to what service i have to pass the letters and get a PsiClass
eg. pass a "AL" string and get a PsiClass reference represent ArrayList
or in general pass Arr and get an array of all PsiClass that it's name begin with Arr
thanx
joe

4 comments

Hello joe,

j> i 'm trying to provide the caml case completion in a textfield of a
j> dialog box ,is it possible?, to what service i have to pass the
j> letters and get a PsiClass
j>
j> eg. pass a "AL" string and get a PsiClass reference represent
j> ArrayList
j>
j> or in general pass Arr and get an array of all PsiClass that it's
j> name begin with Arr

You can get the names of all classes through PsiManager.getInstance(project).getShortNamesCache().getAllClassNames().
There is no OpenAPI service for performing camel-humps matching, so you'll
need to implement this by yourself.

--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"


0

ok,thanks a lot for the tip, and i understand that i must do some work but i think it is a good idea to not duplicate the effort so i suggest to provide this facility as an openApi
or tell us about the internal service(if this is acceptable to u)
thanks
joe

0

is it by matching from this returned array agenest CompletionUtil.createCamplHumpsMacher

0

Hello joe,

j> is it by matching from this returned array agenest
j> CompletionUtil.createCamplHumpsMacher

Indeed, that should do what you need.

--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.