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.
Summary: | FileChooserBuilder should be able to work with other file systems | ||
---|---|---|---|
Product: | platform | Reporter: | Vladimir Kvashin <vkvashin> |
Component: | Filesystems | Assignee: | Vladimir Kvashin <vkvashin> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | issues, jhavlin, jtulach, ovrabec, vkvashin |
Priority: | P3 | Keywords: | API_REVIEW_FAST |
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Solaris | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 236358, 207488 |
Description
Vladimir Kvashin
2012-01-19 08:18:15 UTC
Patch? No patch. No fix. Having some file chooser that is able to work with file FileObjects seems quite reasonable. But it may be quite complicated. Should the chooser support a single file system, or all known (local and remote) file system? The letter option seems more user friendly. Extending FileChooserBuilder would be cumbersome. I would prefer creating a new class, e.g. FileObjectChooserBuilder, and related SPI classes (if needed). (In reply to Jaroslav Havlin from comment #3) ... > Should the chooser support a single file system, or all known (local and > remote) file system? The letter option seems more user friendly. I see two optoins here: 1) File chooser builder that is parameterized with FileSystem. This will help to solve issue 236358 easily 2) File chooser that is parameterized with an SPI interface (TBD), the interface provides a list of available file systems and their display names. File chooser allows to choose file system and then choose file in this file system. Sure option (2) is much more complicated. The benefit is that it allows (for example) the following: - menu item on Favorites that allows adding different file systems - comon "Open project" / "Create project" actions (now CND has its own "Open Remote Project" and "Create Remote Project" actions in "Remote" toolbar (but not in menu). - other situations similar to above > > Extending FileChooserBuilder would be cumbersome. I would prefer creating a > new class, e.g. FileObjectChooserBuilder, and related SPI classes (if > needed). I'm ok with that. Just FYI, there is an example of FileObject-based file chooser / builder in o.n.m.remote.api.ui.FileChooserBuilder class in dlight.remote module. Anyone plans to acctually attach a patch? I do. I'm going to provide a patch withing few days. |