1 package com.nexuiz.demorecorder.ui.swinggui;
5 import javax.swing.filechooser.FileFilter;
7 import com.nexuiz.demorecorder.application.DemoRecorderUtils;
10 * File filter that makes sure that the hidden .nexuiz directory is being shown in the
11 * file dialog, but other hidden directories are not.
13 public class NexuizUserDirFilter extends FileFilter {
16 public boolean accept(File f) {
18 if (f.isDirectory() && DemoRecorderUtils.getJustFileNameOfPath(f).equals(".nexuiz")) {
21 return false; //don't show other hidden directories/files
27 public String getDescription() {