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