AlexKorovyansky
AlexKorovyansky

Reputation: 4943

Method Chooser in Intellij IDEA plugin

I'm developing plugin for IDEA. It need to select public abstract methods with no parameters, and allow user to choose subset of them. I found MemberChooser dialog, but cannot see similar thing for methods.

So if I have List<PsiMethod> how to show dialog for choosing subset of them?

Upvotes: 1

Views: 221

Answers (1)

vikingsteve
vikingsteve

Reputation: 40378

You can use MemberChooser.selectElements with your list.

That is, if you create a PsiMethodMember from each PsiMethod.

Upvotes: 2

Related Questions