Lines 123-128
Link Here
|
123 |
Boolean.getBoolean("forget.recent.dirs"); |
123 |
Boolean.getBoolean("forget.recent.dirs"); |
124 |
private SelectionApprover approver; |
124 |
private SelectionApprover approver; |
125 |
private final List<FileFilter> filters = new ArrayList<FileFilter>(3); |
125 |
private final List<FileFilter> filters = new ArrayList<FileFilter>(3); |
|
|
126 |
private boolean useAcceptAllFileFilter = true; |
126 |
/** |
127 |
/** |
127 |
* Create a new FileChooserBuilder using the name of the passed class |
128 |
* Create a new FileChooserBuilder using the name of the passed class |
128 |
* as the metadata for looking up a starting directory from previous |
129 |
* as the metadata for looking up a starting directory from previous |
Lines 209-214
Link Here
|
209 |
} |
210 |
} |
210 |
|
211 |
|
211 |
/** |
212 |
/** |
|
|
213 |
* Determines whether the <code>AcceptAll FileFilter</code> is used |
214 |
* as an available choice in the choosable filter list. |
215 |
* If false, the <code>AcceptAll</code> file filter is removed from |
216 |
* the list of available file filters. |
217 |
* If true, the <code>AcceptAll</code> file filter will become the |
218 |
* the actively used file filter. |
219 |
* @param accept whether the <code>AcceptAll FileFilter</code> is used |
220 |
* @return this |
221 |
* @since 8.3 |
222 |
*/ |
223 |
public FileChooserBuilder setAcceptAllFileFilterUsed(boolean accept) { |
224 |
useAcceptAllFileFilter = accept; |
225 |
return this; |
226 |
} |
227 |
|
228 |
/** |
212 |
* Set the current directory which should be used <b>only if</b> |
229 |
* Set the current directory which should be used <b>only if</b> |
213 |
* a last-used directory cannot be found for the key string passed |
230 |
* a last-used directory cannot be found for the key string passed |
214 |
* into this builder's constructor. |
231 |
* into this builder's constructor. |
Lines 387-392
Link Here
|
387 |
JFileChooser.FILES_AND_DIRECTORIES); |
404 |
JFileChooser.FILES_AND_DIRECTORIES); |
388 |
chooser.setFileHidingEnabled(fileHiding); |
405 |
chooser.setFileHidingEnabled(fileHiding); |
389 |
chooser.setControlButtonsAreShown(controlButtonsShown); |
406 |
chooser.setControlButtonsAreShown(controlButtonsShown); |
|
|
407 |
chooser.setAcceptAllFileFilterUsed(useAcceptAllFileFilter); |
390 |
if (title != null) { |
408 |
if (title != null) { |
391 |
chooser.setDialogTitle(title); |
409 |
chooser.setDialogTitle(title); |
392 |
} |
410 |
} |