Skip to content

Commit c6d0e06

Browse files
committed
Add FileFilter
1 parent fa606ef commit c6d0e06

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/com/intellij/plugins/bodhi/pmd/PMDConfigurationForm.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ public void actionPerformed(ActionEvent e) {
316316
final VirtualFile toSelect = project.getBaseDir();
317317

318318
final FileChooserDescriptor descriptor = new FileChooserDescriptor(true, false, false, false, false, false);
319+
descriptor.withFileFilter(virtualFile -> virtualFile.getName().endsWith(".xml"));
319320

320321
final VirtualFile chosen = FileChooser.chooseFile(descriptor, BrowsePanel.this, project, toSelect);
321322
if (chosen != null) {

0 commit comments

Comments
 (0)