rom.gui
Class SourceFileFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--rom.gui.SourceFileFilter

public class SourceFileFilter
extends javax.swing.filechooser.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

Field Summary
private static java.lang.String extension
           
private static java.lang.String fullDescription
           
 
Constructor Summary
SourceFileFilter()
          Creates a file filter that accepts the given file type.
SourceFileFilter(java.lang.String extension, java.lang.String fullDescription)
          Creates a file filter that accepts the given file type.
 
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
 

Field Detail

fullDescription

private static java.lang.String fullDescription

extension

private static java.lang.String extension
Constructor Detail

SourceFileFilter

public SourceFileFilter()
Creates a file filter that accepts the given file type.


SourceFileFilter

public SourceFileFilter(java.lang.String extension,
                        java.lang.String fullDescription)
Creates a file filter that accepts the given file type.

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 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