Add in some notion of favorite directories and files to aide in quicker opening. It's a pain when you only have one or two directories that you work in which are far apart in the dir tree to have to navigate all the way up and all the way back.
We might be able to utilize a java.util.Properties element for this, since it would seem to provide the right kind of data structure to get at the directory/file names easily and quickly.
Logged In: YES
user_id=431096
Most versions of Windows and Mac OS have this functionality built into the platform-standard file dialogs. I think this is yet another reason to use AWT for file dialogs, rather than the not-quite-like-my-platform Swing L&F approximations.
Logged In: YES
user_id=431096
We could add this via the config framework, but I'm not sure where it would fit into the interface. I am loath to modify the standard JFileChooser, and it seems like overkill to have a separate menu for this purpose. The recent files list in the File menu achieves much of the usefulness of this idea. Do we really need favorites?
Logged In: YES
user_id=431096
I believe that this use case is covered by the combination of
Recent Files and our JFileChooser initial directory logic. It isn't
the most elegant solution in the world, but it works. I think
this is probably better than using a non-standard JFileChooser.
The current story is this:
User is working on two related projects in disjoint source trees.
User opens a file in the first project and uses DrJava as
normal. When user opens a new file, the file chooser is set to
the directory of the current file, allowing easy access to the
current source tree. All files are added to the recent files list
in order of recency. When the user opens a file in a new
source tree, he must first navigate to that tree. However,
from that point forward he can open any file from that source
tree easily by first switching to a document in that tree, then
using the Open command. Files in that source tree are also
maintained in Recent Files. In a future editing session, the
user can access either source tree quickly by opening any file
from the appropriate tree via Recent Files, then using the
Open command. Perhaps we should explicitly mention this as a
"tip" in our Help documentation.