private void initFileFilter(String mode)
    {
        AnalyseFilter af;
        FileChooserFilter cf;
        chooser.resetChoosableFileFilters();
        for (Iterator<FiltreASI> e = filtres.iterator(); e.hasNext();) {
            af = (AnalyseFilter) e.next();
            if ( ( mode.equals ( Constantes.OPEN ) && af.canOpen() ) || 
            	 ( mode.equals ( Constantes.SAVE ) && af.canSave() ) )  {
                cf = new FileChooserFilter(af.getID());
                cf.setExtension(af.getExtension());
                cf.setDescription(af.getDescription());
                chooser.addChoosableFileFilter(cf);
            }
        }

    }