TreeClassChooserDialog
I have used this dialog with success using the 1st constructor that just takes the title and Project. However, the chooser only finds classes that are in my project. I wanted to be able to select against all the classes, but I cannot figure out how to use the second, more complicated constructor.
First, I would like to know what the two int parameters are for. Second, when I try to compile, it complains that it cannot find the class ClassFilter. Here is my code:
TreeClassChooserDialog chooser = new TreeClassChooserDialog("Title", project, (GlobalSearchScope)PsiSearchScope.ALL, 0, 0,
new TreeClassChooserDialog.ClassFilter() {
public boolean isAccepted(PsiClass psiClass) {
return true;
}
});
chooser.show();
Am I doing something wrong? Or is there a better way?
Kirk
请先登录再写评论。