TreeClassChooser question: how to prefill the field

Hi,



Q1/
How can I see the initial value of the text field, in the
TreeClassChooser popup or dialog?


Q2/
How can I search a project for a class, based on it NOT qualified name
(ex: String, or Foo)?


TIA
Alain

2 comments
Comment actions Permalink

Hi

"Alain Ravet" <alain.ravet@biz.tiscali.be> wrote in message
news:cuo89d$vt$1@is.intellij.net...

Hi,

>
>
>

Q1/
How can I see the initial value of the text field, in the
TreeClassChooser popup or dialog?


Use createProjectScopeChooser(String title, PsiClass initialClass) in
TreeClassChooserFactory

>

Q2/
How can I search a project for a class, based on it NOT qualified name
(ex: String, or Foo)?


PsiManager.getInstance().getShortNamesCache().getClassesByName(String name,
GlobalSearchScope scope)

>

TIA
Alain



0
Comment actions Permalink

Anna

>>Q1/ How can I see the initial value of the text field, in the TreeClassChooser popup or dialog?
>>
>>
>Use createProjectScopeChooser(String title, PsiClass initialClass) in TreeClassChooserFactory
>

>

I want to place plain text, in this field - ex: "Foo*Test"-,
=> I don't have a class, nor a PsiClass to set the param to.


Alain

0

Please sign in to leave a comment.