private AnalyseFilter getAnalyseFilter()
    {
        AnalyseFilter af;
        String ext = Constantes.FILE_EXTENSION ;   // bug #489240
        String ID = "";
        FileChooserFilter ff;

        if (chooser.getFileFilter() instanceof FileChooserFilter) {
            ff = (FileChooserFilter) (chooser.getFileFilter());
            ID = ff.getID();
        }
        if (fileName != null)
            ext = Utilities.getExtension(fileName);

        for (Iterator<FiltreASI> e = filtres.iterator(); e.hasNext();) {
            af = (AnalyseFilter) e.next();
            if (af.getID().equals(ID) || af.getExtension().equals(ext))
                return af;
        }

        return null;
    }