}
}
}
- allExtensions.sort(null);
- JalviewFileFilter alljvf = new JalviewFileFilter(
- allExtensions.toArray(new String[] {}),
- MessageManager.getString("label.all_known_alignment_files"));
- alljvf.setMultiFormat(true);
- alljvf.setExtensionListInDescription(false);
- addChoosableFileFilter(alljvf);
-
- if (selected == null)
+
+ if (acceptAny)
{
- chosen = alljvf;
+ allExtensions.sort(null);
+ JalviewFileFilter alljvf = new JalviewFileFilter(
+ allExtensions.toArray(new String[] {}),
+ MessageManager.getString("label.all_known_alignment_files"));
+ alljvf.setMultiFormat(true);
+ alljvf.setExtensionListInDescription(false);
+ addChoosableFileFilter(alljvf);
+
+ if (selected == null)
+ {
+ chosen = alljvf;
+ }
}
for (String[] format : formats)