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.

Bug 27748 - Need a new framework for file/object chooser
Summary: Need a new framework for file/object chooser
Status: RESOLVED DUPLICATE of bug 23532
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: Dirk Ruiz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-02 18:14 UTC by Petr Jiricka
Modified: 2003-12-11 14:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2002-10-02 18:14:55 UTC
In NetBeans 3.4 and earlier, there were two basic 
approaches for choosing a file. One was to use a 
JFileChooser over the content of the whole disk, and the 
other was to use the NetBeans explorer-based chooser for 
objects mounted in FileSystems.

In NetBeans 4.0, there are many new concepts which require 
a new framework for a file chooser.

First, since the roots of filesystems are mounted, the 
distinction between the JFileChooser approach and the 
explorer containing all filesystems disappears.

Secondly, it may be useful to limit the selection to a 
subset of files, such as:
- all files in a given project
- other projects and files in them
- other projects and targets in them
- resources of a project
- all files on the classpath of a given project
- any other selection provided by modules, such as "all 
files in web applications"

Thirdly, it will be a requirement to allow mounting a VCS 
filesystem in the chooser, because as the user is not 
expected to interact with the Filesystems tab very much, 
she must be given the opportunity to mount a VCS FS later 
when she needs it, which may be when she is choosing a 
file.

It would be also useful to give the user the choice for 
which selection to use, by having tabs in the chooser 
which would say
"All Files"
"Files in Project"
"All Projects"
"Files on Classpath"
etc.

Also, individual clients (modules) of the chooser should 
be able to show some tabs, and not others, so for example 
if the Java module knows that the file chosen *has* to be 
on the classpath, it should be able to only allow "Files 
on Classpath", and disable "All Files" and similar.
Comment 1 Vitezslav Stejskal 2002-10-03 12:54:27 UTC
Petre, thanks for nice summary of requirements. Similar issues has
been filed several times, but nobody cares (#23532, #24094). It's P1,
I think.
Comment 2 Petr Jiricka 2002-10-04 10:19:46 UTC
Moving to an existing bug: 23532

*** This issue has been marked as a duplicate of 23532 ***