Package chooser dialog for the module


I'm able to display the package chooser dialog, using the PackageChooserDialog class, but the current implementation only seems to support showing all the packages in a project. Is there anyway i can do the same but only show the packages in a module ?


Comment actions Permalink

No, this was not requested before. Sounds like a reasonable idea to have a chooser parameterized by scope.
Please submit a request to JIRA.

Comment actions Permalink

Thanks. Created issue IDEA-6808.

One more related question. I'm also using the TreeClassChooserFactory to create a class chooser dialog. Again i only want class in module scope. It works like expected in the "Search by name" tab of the dialog but in the "Project" tab one can select any class of any module in the project.

Is the behaviour i'm looking for not supported for classes also ?


Please sign in to leave a comment.