This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The FileSystem APIs depend on org.openide.util, while org.openide.util.base (independent of desktop processing) exists. ImageUtilities are used from o.o.util to work with Image. Also depenendencies on (semantically obsolete) SharedClassObject should be removed. FileChooserBuilder entirely depends on Swing and should be moved off the Filesytems API. ImageUtilities are only used from the default filesystem's Status implementation. The implmentation may move to another module, while FileSystems API retain a basic Status implementation with no image annotations. SharedClassObject is only constructed from code that handles instance creation in absence of the 'instanceCreate' attribute. This part of code can be moved elsewhere The proposal is to 1/ create an interface org.openide.filesystems.spi.CustomInstanceFactory for handling class instance creation (incl. special handling of SharedClassObject) 2/ lookup the FileSystem.Status implementation for the system (default) filesystem in the default Lookup. 3/ create a org.openide.filesystems.nb module, which will host the FileChooserBuilder implementation and implementations of FileSystem.Status and CustomInstanceFactory. The module will become part of platform cluster This module will be auto-injected using module-auto-deps.xml for client modules which depend on older FileSystem APIs - preserves both compile and runtime compatibility. Diffs will follow shortly.
Note: target is the server_split branch
Created attachment 146650 [details] Proposed changes Should be applied on top of the patch from issue #243561
Will be committed to branch as changesets jet-main#00fa24ad97e and jet-main#d135d78c706b
All the modifications seem fine to me. Great job!
Integrated into 'main-silver', will be available in build *201410180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/200fa24ad97e User: Svata Dedic <sdedic@netbeans.org> Log: #243683: filesystem dependencies reduced, NB/swing related moved to filesystems.nb, provided 8.0 compat patches
If fixed, then close the issue.