Skip to content

Harmonize file filter logic for File inputs #58

Open
@imagejan

Description

@imagejan

We currently have inconsistent logic when setting up a file filter for File and File[] inputs.

The extensions style is only supported for File[] inputs, not for File, see:

Actually, the file filter seems to work for drag-and-drop (in FileHandler):

final List<File> files = SwingFileWidget.filterFiles(allFiles,
filter);

... but not for the Browse button.

Related scijava-common issue: scijava/scijava-common#197

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions