Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwingFileWidget: support 'pattern' style #57

Open
imagejan opened this issue May 25, 2021 · 1 comment
Open

SwingFileWidget: support 'pattern' style #57

imagejan opened this issue May 25, 2021 · 1 comment

Comments

@imagejan
Copy link
Member

In addition to a style attribute like extensions:tif/tiff, we should support a way to define file name patterns, such as pattern:WildType*.tif (wildcard pattern) and/or pattern:^[A-Za-z0-9]+\.png (regex pattern).

Getting the style modifier will be simplified once scijava/scijava-common#405 is merged and released.

Open questions:

  • Two different style attributes for wildcards and regexes? E.g. regex-pattern and wildcard-pattern, or regex and pattern, ...
  • Additional flags to specify case (in)sensitivity? For regex patterns, we could use standard syntax like /[A-Z]/gmi or (?i)[A-Z]; I'm not sure about conventions for the wildcard case...
@imagejan
Copy link
Member Author

In addition to regex patterns for filtering valid inputs, we should also consider how the usage of File[List]Widgets with file patterns in SCIFIO for actual inputs, see also scifio/scifio#431 and scifio/scifio#432 for related discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant