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.