}
public FilenameFilter getFileFilter(FileTest fileTest) {
FilterPanel fp = (FilterPanel)criteriaPanel.filterTabs.getSelectedComponent();
if (fp == null) {
return new MyFilenameFilter(
criteriaPanel.ignorePeriods.isSelected(),
"",
false,
"",
false,
"",
false,
"",
false,
fileTest.isTestFiles()
);
}
return new MyFilenameFilter(
criteriaPanel.ignorePeriods.isSelected(),
fp.prefix.getText(),
fp.rePrefix.isSelected(),
fp.contains.getText(),
fp.reContains.isSelected(),