Overridden to make sure the shared MainFrame instance is used as a parent when no parent is specified
(Component parent, String approveButtonText)
| 73 | * a parent when no parent is specified |
| 74 | */ |
| 75 | @Override |
| 76 | public int showDialog(Component parent, String approveButtonText) |
| 77 | throws HeadlessException { |
| 78 | setSelectedFileFromPreferences(); |
| 79 | return super.showDialog((parent != null) ? parent : |
| 80 | (MainFrame.getFileChooser() != null) ? MainFrame.getInstance() : |
| 81 | null, approveButtonText); |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * If possible, select the last directory/file used for the resource |
nothing calls this directly
no test coverage detected