javaprec
Class SourceFileOrDirectoryFileFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--javaprec.SourceFileOrDirectoryFileFilter
All Implemented Interfaces:
java.io.FileFilter

class SourceFileOrDirectoryFileFilter
extends javax.swing.filechooser.FileFilter
implements java.io.FileFilter

SourceFileFilter - is a FileFilter that filters out all files except *.java files

Title: Runtime Java Class Editor - editor Package

Package Description: Edit & Select methods from all currently executing objects in enclosing programme

Copyright: James D Bloom Copyright (c) 2003

Version:
1.0
Author:
James D Bloom

Constructor Summary
(package private) SourceFileOrDirectoryFileFilter()
           
 
Method Summary
 boolean accept(java.io.File file)
          Returns true if the file is a java source file, false if it shouldn't
 java.lang.String getDescription()
          Returns the human readable description of this filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceFileOrDirectoryFileFilter

SourceFileOrDirectoryFileFilter()
Method Detail

accept

public boolean accept(java.io.File file)
Returns true if the file is a java source file, false if it shouldn't

Specified by:
accept in interface java.io.FileFilter
Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
file - input File
Returns:
true if this file is a java source file

getDescription

public java.lang.String getDescription()
Returns the human readable description of this filter

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
a String containing the human readable description of this filter