Menu

#21 Favorite directories/files

open
nobody
Other (46)
5
2002-03-05
2002-02-19
No

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.

Discussion

  • Peter Centgraf

    Peter Centgraf - 2002-02-19

    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.

     
  • Brian Stoler

    Brian Stoler - 2002-03-05
    • milestone: --> Small (< 1 pair-week)
     
  • Peter Centgraf

    Peter Centgraf - 2003-01-22

    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?

     
  • Peter Centgraf

    Peter Centgraf - 2003-07-19

    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
    &quot;tip&quot; in our Help documentation.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.