projectviewer.importer
Class ImporterFileFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended byprojectviewer.importer.ImporterFileFilter
All Implemented Interfaces:
java.io.FilenameFilter
Direct Known Subclasses:
CVSEntriesFilter, GlobFilter

public abstract class ImporterFileFilter
extends javax.swing.filechooser.FileFilter
implements java.io.FilenameFilter

File filter implementation used when importing files into a project. It implements both of Java's file filter classes (javax.swing.filechooser.FileFilter and interface java.io.FilenameFilter) and provides a method that returns a description string to use when asking the user about recursion into imported directories.

Version:
$Id: ImporterFileFilter.java 6289 2004-09-09 21:57:26Z vanza $
Author:
Marcelo Vanzin

Constructor Summary
ImporterFileFilter()
           
 
Method Summary
abstract  java.lang.String getRecurseDescription()
          This method will be called by the toString() method when showing this filter as an option to the dialog shown when asking about whether the user wants to recurse into the directories selected for importing.
 java.lang.String toString()
          Calls getRecurseDescription().
 
Methods inherited from class javax.swing.filechooser.FileFilter
accept, getDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.io.FilenameFilter
accept
 

Constructor Detail

ImporterFileFilter

public ImporterFileFilter()
Method Detail

getRecurseDescription

public abstract java.lang.String getRecurseDescription()
This method will be called by the toString() method when showing this filter as an option to the dialog shown when asking about whether the user wants to recurse into the directories selected for importing.

It should return a short, descriptive string of what the filter does, gererally prefixed with "Yes,". For example, "Yes, import all files." or "Yes, use the CVS/Entries file."


toString

public java.lang.String toString()
Calls getRecurseDescription().