/**
  *
  * See the end of the file for the log of changes.
  *
  * $Author: mtsezgin $
  * $Date: 2000/06/09 21:25:42 $
  * $Revision: 1.1 $
  * $Headers$
  * $Id: MechanicalDesignFilenameFilter.java,v 1.1 2000/06/09 21:25:42 mtsezgin Exp $
  * $Name:  $
  * $Locker:  $
  * $Source: /mit/mtsezgin/CVS/Repository/REC/MechanicalDesignFilenameFilter.java,v $
  *
  **/

import java.io.File;
import java.io.FilenameFilter;

/**
  *
  * This class does the filtering of mechanical design files.
  *
  **/

class      MechanicalDesignFilenameFilter
implements FilenameFilter
{
    /**
    *
    * File signature for designs.
    *
    **/
    public static final String MECHANICAL_DESIGN_FILE_SIGNATURE = ".tms";
    
    
    /**
    *
    * File signature for designs.
    *
    **/
    public boolean
    accept( File dir, String name )
    {
        if ( name == null )  // JIC
            return false;
            
        return name.endsWith( MECHANICAL_DESIGN_FILE_SIGNATURE );
    }
}


/** 
  * 
  * $Log: MechanicalDesignFilenameFilter.java,v $
  * Revision 1.1  2000/06/09 21:25:42  mtsezgin
  *
  * Filter for filtering Mechanical design files.
  *
  *
  **/
