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 33053 - File chooser should refresh files automatically
Summary: File chooser should refresh files automatically
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Directory Chooser (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Ondrej Vrabec
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2003-04-18 13:27 UTC by Petr Jiricka
Modified: 2010-10-07 10:44 UTC (History)
1 user (show)

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 2003-04-18 13:27:35 UTC
The Projects build now uses a new file(object) chooser, 
which displays all local drives. When a new directory has 
been created externally outside the IDE (e.g. 
c:\newfolder), the chooser will not see it, because there 
is no automatic refresh. Moreover, refresh can not be done 
manually, because the popup menu on the folder is disabled 
in dialogs.

I suggest the filechooser refreshes all folders that the 
user expands - this way the user sees all the new folders. 
This also does not have as disastous effects as the 
periodic refresh that we had in the past.
Comment 1 Jiri Rechtacek 2003-04-18 14:01:05 UTC
It's not defect for me, but a ask for new functionality. Which
specification defines correct and excepted behavior to determine
DEFECT vs TASK vs. ENHANCEMENT?
Moreover, it's not task to wizard's target chooser but to
DataFolderEditor. => reassigned to core/property editors. Petr, have
in mind that 2nd panel in Template wizard is based on DataFolderEditor.
Comment 2 Petr Jiricka 2003-04-18 14:03:25 UTC
Ok, I agree we can make this a TASK. I am not sure where 
in the implementation this should be done, but I strogly 
feel this should be addressed.
Comment 3 _ tboudreau 2003-11-16 09:00:52 UTC
Changing this to enhancement - it's assigned to me, and I'm more
likely to see it in the list of things I should work on that way.

Also with Projects cancelled, I'm not sure this issue is still relevant:

I assume we're talking about DataObjectEditor here?  If so, I'd like
to postpone any discussion of this until the status of Filesystem
Extension is resolved.  Basically there are a number of structural and
threading related problems in DataObject editor:
 - The JFileChooser loads the contents of its file list asynchronously
 - The files it displays are DataObjects, which will often be parsed
and identified on their own thread, also asynchronously
 - The refresh requested would probably also end up being an
asynchronous operation, completing at some undetermined time

So basically, counting the AWT thread, we'd potentially have four
threads running simultaneously all potentially altering the contents
of the file chooser.  The possibilities for problems are endless...
Comment 4 _ tboudreau 2004-04-19 14:52:40 UTC
Passing property editor issues to new owner, Jirka
Comment 5 tak416 2008-10-17 19:52:30 UTC
At least, when right click on a folder or project, there should have "refresh" item to force the NB to check files
security setting. Right now, when the project's files change settings, NB does not know.

When I close the project and come back, only some of them get refreshed.
Comment 6 _ tboudreau 2008-11-20 04:00:45 UTC
tak416 - I think you are talking about something different than what this bug is about - this is specific to a file
chooser (which, incidentally, doesn't even exist anymore in any form that resembles what this project is about).  If you
are having a problem with the IDE not refreshing files (it should whenever the main window regains focus after losing
it), please file a new issue.

Dafe, does this issue have anything to do with anything anymore?