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

Respect multiple styles in chooseFile and chooseFiles methods #41

Open
imagejan opened this issue Jul 19, 2018 · 0 comments
Open

Respect multiple styles in chooseFile and chooseFiles methods #41

imagejan opened this issue Jul 19, 2018 · 0 comments

Comments

@imagejan
Copy link
Member

We currently check for equality in the chooseFile and chooseFiles methods of AbstractSwingUI:

if (FileWidget.DIRECTORY_STYLE.equals(style)) {

if (style.equals(FileListWidget.FILES_AND_DIRECTORIES)) {

Let's instead use a common utility method to check whether a certain style string matches a given widget style.

See also scijava/scijava-common#333.

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