// if the active filter accepts the file, use its plugin in priority
// otherwise, take the first plugin (excuding the builtin) that can
// accept the file
Plugin acceptedPlugin = null;
for (int i = 0; i < Run.plugins.size(); ++i) {
Plugin p = (Plugin) Run.plugins.get(i);
FileFilter[] fft = p.getFileFilters(action);
if (fft == null) {
continue;
}
for (int j = 0; j < fft.length; ++j) {
if (accepted && fft[j].equals(activeFilter)) {