MichaelJakubec / gtkjfilechooser

Automatically exported from code.google.com/p/gtkjfilechooser
1 stars 0 forks source link

When some operations are done, the file chooser isn't "live" updated. #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When some operations are done, for example:
  * mounting or umounting new devices/filesystems
  * creating/deleting/renaming new files in the current folder, when this
is done within other apps.
the file chooser isn't "live" updated.

Original issue reported on code.google.com by c.ce...@gmail.com on 29 Nov 2009 at 5:31

GoogleCodeExporter commented 9 years ago
You might want to way for java 7 for this. There is going to be a new filesystem
watcher api as part of nio2

Original comment by i30817@gmail.com on 29 Nov 2009 at 7:17

GoogleCodeExporter commented 9 years ago
Thanks a lot for this info, I didn't know it.
I've found this tutorial_
http://blogs.sun.com/thejavatutorials/entry/watching_a_directory_for_changes

Original comment by c.ce...@gmail.com on 29 Nov 2009 at 10:28

GoogleCodeExporter commented 9 years ago
Until Java 7 is released, we may use the naive approach described here:
  http://www.rgagnon.com/javadetails/java-0490.html

Original comment by c.ce...@gmail.com on 30 Nov 2009 at 11:58

GoogleCodeExporter commented 9 years ago
Also the bookmarks should be updated (~/.gtk-bookmarks)

Original comment by c.ce...@gmail.com on 7 Dec 2009 at 2:49

GoogleCodeExporter commented 9 years ago
The following three paths should be listened for changes:
  * /media
  * ~/.gtk-bookmarks
  * <current folder>

Original comment by c.ce...@gmail.com on 7 Dec 2009 at 2:50

GoogleCodeExporter commented 9 years ago
To see the implementation details look for all references of
"FileWatcher.theFileWatcher()".

Original comment by c.ce...@gmail.com on 7 Dec 2009 at 8:35