{
filter = ( AbstractFileFilter ) fileFilter;
}
else
{
filter = new CustomFileFilter ( GlobalConstants.ALL_FILES_FILTER.getIcon (), fileFilter.getDescription () )
{
@Override
public boolean accept ( final File file )
{
return fileFilter == null || fileFilter.accept ( file );