FolderChooser - refresh - rescanCurrentDirectory

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

FolderChooser - refresh - rescanCurrentDirectory

Postby maximhallow » Mon Sep 29, 2008 9:34 am

Hi,

I wonder why FolderChooser does not implement "rescanCurrentDirectory"? There is a "refresh"-action and a binding for the "F5" key. but the UI calls the parent method in BasicFileChooserUI - but this method is empty! So it seams to be that there is no chance to refresh the folder structure to show external changes.

Can anybody help me?

Maxim
maximhallow
 
Posts: 10
Joined: Mon Sep 29, 2008 9:28 am

Re: FolderChooser - refresh - rescanCurrentDirectory

Postby JIDE Support » Mon Sep 29, 2008 9:38 am

The empty method is on Swing's code. We are not sure how to do this either. For now, you can use FolderChooser#updateUI to refresh.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37263
Joined: Sun Sep 14, 2003 10:49 am

Re: FolderChooser - refresh - rescanCurrentDirectory

Postby maximhallow » Mon Sep 29, 2008 9:39 am

oh sorry, i didn't mean "rescanDirectory". What i am looking for is a method to rescan the directory structure from the hard disk.
maximhallow
 
Posts: 10
Joined: Mon Sep 29, 2008 9:28 am

Re: FolderChooser - refresh - rescanCurrentDirectory

Postby JIDE Support » Mon Sep 29, 2008 9:51 am

I knew. The updateUI method is the only way to reload the directory structure from the hard disk. There should be a method to rescan the current folder but it is not available right now.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37263
Joined: Sun Sep 14, 2003 10:49 am

Re: FolderChooser - refresh - rescanCurrentDirectory

Postby maximhallow » Mon Sep 29, 2008 9:54 am

when I call "updateUI" the GUI seams to be painting problems... the recent list is not visible anymore and so on. Do you know the reason?
maximhallow
 
Posts: 10
Joined: Mon Sep 29, 2008 9:28 am

Re: FolderChooser - refresh - rescanCurrentDirectory

Postby JIDE Support » Mon Sep 29, 2008 10:17 am

We didn't load the recent list from the FolderChooser. I would consider this is a bug. We will try to fix it along with the refresh issue. I think it is better to add a button on the tool bar of FolderChooser to refresh. It will be very useful.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37263
Joined: Sun Sep 14, 2003 10:49 am

Re: FolderChooser - refresh - rescanCurrentDirectory

Postby JIDE Support » Tue Sep 30, 2008 8:07 am

Just so you know, 2.4.0 release should fix this. A refresh button is added and setRecentList is also fixed.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37263
Joined: Sun Sep 14, 2003 10:49 am

Re: FolderChooser - refresh - rescanCurrentDirectory

Postby maximhallow » Fri Oct 03, 2008 2:01 pm

Great to read this news, but i found the following bugs:

1. The tooltip von the refresh button is wrong.
2. the refresh button has to be controlled also by F5 key (like in Windows Explorer)
3. after pressing the refresh button the gui painting is broke. My folderchooser is extended by my own accessory component, but after refreshing the folder structure my accessory and the build buttons and the recent list overlap...

best regards,
Maxim
maximhallow
 
Posts: 10
Joined: Mon Sep 29, 2008 9:28 am

Re: FolderChooser - refresh - rescanCurrentDirectory

Postby JIDE Support » Sun Oct 05, 2008 11:11 am

I just fixed both 1 and 2 and checked into the open source JIDE Common Layer. You can check it out from svn or wait for the next formal release in about a week or so.

I don't know how to reproduce issue 3. Could you please modify FolderChooserDemo to reproduce it?

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37263
Joined: Sun Sep 14, 2003 10:49 am

Re: FolderChooser - refresh - rescanCurrentDirectory

Postby JIDE Support » Thu Oct 09, 2008 12:43 pm

Just so you know, 2.4.2 release fixed the 1 and 2.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37263
Joined: Sun Sep 14, 2003 10:49 am

Re: FolderChooser - refresh - rescanCurrentDirectory

Postby maximhallow » Fri Jan 23, 2009 3:17 am

Ok, the problem is still present in current version 2.5

To reproduce it please include the follwing line in the code of FolderChooserDemo:

_folderChooser.setAccessory(new JCheckBox("Recursive"));

Then open the FolderChooser and press the "refresh"-button. After that the navigation panel (below the checkbox) is hidden or the checkbox overlaps the navigation panel.

Best regards,
Maxim
Attachments
jide.png
overlapping bug
jide.png (31.86 KiB) Viewed 47402 times
maximhallow
 
Posts: 10
Joined: Mon Sep 29, 2008 9:28 am

Re: FolderChooser - refresh - rescanCurrentDirectory

Postby maximhallow » Fri Jan 23, 2009 3:36 am

For the moment, you can use the following workaround:

Just override the updateUI method:

FolderChooer fcr = new FolderChooser()
{
public void updateUI()
{
JComponent c = getAccessory();
this.setAccessory(null);
super.updateUI();
this.setAccessory(c);
}
};
maximhallow
 
Posts: 10
Joined: Mon Sep 29, 2008 9:28 am

Re: FolderChooser - refresh - rescanCurrentDirectory

Postby JIDE Support » Fri Jan 23, 2009 10:51 am

I will make sure it is fixed and will let you know when it is released.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37263
Joined: Sun Sep 14, 2003 10:49 am

Re: FolderChooser - refresh - rescanCurrentDirectory

Postby JIDE Support » Fri Jan 23, 2009 11:14 pm

Please download 2.5.0 release again which fixed this bug.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37263
Joined: Sun Sep 14, 2003 10:49 am

Re: FolderChooser - refresh - rescanCurrentDirectory

Postby maximhallow » Sat Jan 24, 2009 12:21 pm

Sorry, i downloaded 2.5 anew but both bugs are just present...
maximhallow
 
Posts: 10
Joined: Mon Sep 29, 2008 9:28 am

Re: FolderChooser - refresh - rescanCurrentDirectory

Postby JIDE Support » Sat Jan 24, 2009 12:27 pm

I meant the 2.5 JIDE release on JIDE website, not JIDE Common Layer release on java.net. We forgot to update java.net and will do it on Monday. For now, you can get everything from SVN and use ant to build the release yourself.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37263
Joined: Sun Sep 14, 2003 10:49 am

Re: FolderChooser - refresh - rescanCurrentDirectory

Postby JIDE Support » Sat Jan 24, 2009 5:27 pm

I just updated 2.5.0 release on the java.net.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37263
Joined: Sun Sep 14, 2003 10:49 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 4 guests