git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7d225f
)
JAL-3618 Enable appBundleIsTraversable in JFileChooser on macOS
author
Ben Soares
<bsoares@dundee.ac.uk>
Fri, 5 Mar 2021 11:24:16 +0000
(11:24 +0000)
committer
Ben Soares
<bsoares@dundee.ac.uk>
Fri, 5 Mar 2021 11:24:16 +0000
(11:24 +0000)
src/jalview/jbgui/GPreferences.java
patch
|
blob
|
history
diff --git
a/src/jalview/jbgui/GPreferences.java
b/src/jalview/jbgui/GPreferences.java
index
5af94e4
..
1a4a44b
100755
(executable)
--- a/
src/jalview/jbgui/GPreferences.java
+++ b/
src/jalview/jbgui/GPreferences.java
@@
-1799,6
+1799,14
@@
public class GPreferences extends JPanel
String choice = null;
JFileChooser chooser = new JFileChooser();
+ // Enable appBundleIsTraversable in macOS FileChooser to allow selecting
+ // hidden executables within .app dirs
+ if (Platform.isMac())
+ {
+ chooser.putClientProperty("JFileChooser.appBundleIsTraversable",
+ true);
+ }
+
// chooser.setFileView(new JalviewFileView());
chooser.setDialogTitle(
MessageManager.getString("label.open_local_file"));