20 package net.sf.gridarta.utils;
23 import java.util.ArrayList;
24 import java.util.Arrays;
25 import java.util.Collection;
26 import javax.swing.filechooser.FileFilter;
27 import net.
sf.japi.util.filter.file.AbstractFileFilter;
28 import org.jetbrains.annotations.NotNull;
48 @SuppressWarnings(
"StaticCollection")
73 return other.getDescription();
80 @SuppressWarnings(
"ParameterNameDiffersFromOverriddenParameter")
82 public boolean accept(@NotNull
final File pathName) {
83 if (pathName.getName().startsWith(
".")) {
88 return !(pathName.isDirectory() &&
rejectedDirectoryNames.contains(pathName.getName())) && ((java.io.FileFilter) other).accept(pathName);
final Collection< String > rejectedDirectoryNames
The rejected directory names.
A FileFilter that wraps another FileFilter and filters out version control directories.
boolean accept(@NotNull final File pathName)
First checks whether the file should be hidden, if not, checks the other FileFilter.
String getDescription()
Returns the description from the other FileFilter.
static final Collection< String > REJECTED_DIRECTORY_NAMES
The default rejected directory names.
final FileFilter other
The other file filter.