Created attachment 162754 [details]
There are cases when we want to use file chooser to browse file system on a remote machine (or probably other file system that is not based on java.io.File). Modules that provide such file choosers already exist in NetBeans, for example, dlight.remote.ui. However, direct usage of these modules introduces undesirable dependencies.
We propose a pair of API/SPI that allows a client that knows a FileSystem to obtain a file chooser for that file system.
I'm going to push changes into cnd-main, if there is no objections
Implemented in changeset:
Integrated into 'main-silver', will be available in build *201611270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Danila Sergeyev <email@example.com>
Log: Bug #268811 Service provider for FileChooserBuilder
Verified in internal NetBeans 8,2 patch 1 build