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 2710 - Suggest: Recently Used Files list in File menu.
Summary: Suggest: Recently Used Files list in File menu.
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P2 normal (vote)
Assignee: David Simonek
URL:
Keywords: UI
: 35585 47939 57866 58888 (view as bug list)
Depends on: 87009
Blocks: 70467
  Show dependency tree
 
Reported: 1999-07-23 20:00 UTC by Jesse Glick
Modified: 2008-12-23 11:46 UTC (History)
6 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Updated with changes to move line/selection up/down (41.67 KB, application/octet-stream)
2008-04-28 03:03 UTC, scwells72
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 1999-07-23 20:00:03 UTC
Would need to be a SystemAction implementing MenuPresenter with a JInlineMenu so that it would have as many entries as needed. Some configurable number of entries. I guess should take them from the
DataObject.Registry or whatever it is, i.e. all DataObjects that are modified. Should show each menu item as the icon + display name of the DataNode, as in Explorer.
Comment 1 Jaroslav Tulach 2002-02-15 08:44:30 UTC
Changing from LATER to OPEN. Converted to ENH. Do we want to do it?
Comment 2 Jaroslav Tulach 2002-02-15 08:45:01 UTC
Maybe should be handled by some module and not part of core...
Comment 3 Marek Grummich 2002-07-22 08:44:05 UTC
Target milestone was changed from '3.4' to TBD.
Comment 4 Marek Grummich 2002-07-22 09:15:18 UTC
Target milestone was changed from '3.4' to TBD.
Comment 5 Marian Mirilovic 2005-04-14 10:26:51 UTC
It could be usefull ...
Comment 6 Marian Mirilovic 2005-04-14 10:27:10 UTC
*** Issue 57866 has been marked as a duplicate of this issue. ***
Comment 7 Marian Mirilovic 2006-02-07 08:53:11 UTC
*** Issue 35585 has been marked as a duplicate of this issue. ***
Comment 8 Marian Mirilovic 2006-02-07 08:54:21 UTC
*** Issue 47939 has been marked as a duplicate of this issue. ***
Comment 9 Marian Mirilovic 2006-08-08 08:44:59 UTC
*** Issue 58888 has been marked as a duplicate of this issue. ***
Comment 10 Jaroslav Tulach 2006-09-14 14:22:41 UTC
Probably very connected to our functionality of Shift-F4 - e.g. list of open 
documents. This action would just track the list and if something goes away 
from it, it would know it should be displayed here. CCing Dafe to share his 
opinion.
Comment 11 David Simonek 2006-09-20 11:01:52 UTC
Yes we have this issue in a plan for next release, passing to probable
responsible engineer.

Btw I agree with the way of implementation that jarda suggested.
Comment 12 David Simonek 2006-09-21 11:34:28 UTC
Taking back, I'll try to implement this as Standa has a lot of other tasks to do.
Comment 13 David Simonek 2006-09-28 12:40:58 UTC
I wrote mini-UI spec, available at 
http://core.netbeans.org/proposals/recent-files-ui-spec.html

Please read and comment if you have time, I'm also posting UI spec to UI review.

Implementation side: IMO best place for implementation is openfile module, maybe
new winsys API will be needed for easier tracking of closed TopComponents.
Interesting part is also how to recognize TopComponents (well their files) to
track. Not all TopComponents in editor area belong here (Welcome for example).  
Comment 14 David Simonek 2006-10-13 15:40:53 UTC
I just integrated implementation of UI spec above to the main trunk.
Implementation is divided into UI part (menu action) and "history engine" so
that we can possibly use the engine for popup view with quick search over file
history.

CVS log:

Checking in utilities/src/org/netbeans/modules/openfile/RecentFiles.java;
/cvs/utilities/src/org/netbeans/modules/openfile/RecentFiles.java,v  <-- 
RecentFiles.java
initial revision: 1.1
done
Checking in utilities/src/org/netbeans/modules/openfile/Bundle.properties;
/cvs/utilities/src/org/netbeans/modules/openfile/Bundle.properties,v  <-- 
Bundle.properties
new revision: 1.40; previous revision: 1.39
done
RCS file: /cvs/utilities/src/org/netbeans/modules/openfile/RecentFileAction.java,v
done
Checking in utilities/src/org/netbeans/modules/openfile/RecentFileAction.java;
/cvs/utilities/src/org/netbeans/modules/openfile/RecentFileAction.java,v  <-- 
RecentFileAction.java
initial revision: 1.1
done
Checking in utilities/src/org/netbeans/modules/utilities/Layer.xml;
/cvs/utilities/src/org/netbeans/modules/utilities/Layer.xml,v  <--  Layer.xml
new revision: 1.88; previous revision: 1.87
done
Checking in utilities/src/org/netbeans/modules/utilities/Installer.java;
/cvs/utilities/src/org/netbeans/modules/utilities/Installer.java,v  <-- 
Installer.java
new revision: 1.31; previous revision: 1.30
done
Checking in openide/windows/test/unit/src/org/openide/windows/TopComponentTest.java;
/cvs/openide/windows/test/unit/src/org/openide/windows/TopComponentTest.java,v 
<--  TopComponentTest.java
new revision: 1.3; previous revision: 1.2
done
Checking in core/windows/src/org/netbeans/core/windows/RegistryImpl.java;
/cvs/core/windows/src/org/netbeans/core/windows/RegistryImpl.java,v  <-- 
RegistryImpl.java
new revision: 1.14; previous revision: 1.13
done
RCS file:
/cvs/utilities/test/unit/src/org/netbeans/modules/openfile/resources/recent_files/File2.blabla,v
done
Checking in
utilities/test/unit/src/org/netbeans/modules/openfile/resources/recent_files/File2.blabla;
/cvs/utilities/test/unit/src/org/netbeans/modules/openfile/resources/recent_files/File2.blabla,v
 <--  File2.blabla
initial revision: 1.1
done
RCS file:
/cvs/utilities/test/unit/src/org/netbeans/modules/openfile/resources/recent_files/File1.txt,v
done
Checking in
utilities/test/unit/src/org/netbeans/modules/openfile/resources/recent_files/File1.txt;
/cvs/utilities/test/unit/src/org/netbeans/modules/openfile/resources/recent_files/File1.txt,v
 <--  File1.txt
initial revision: 1.1
done
RCS file:
/cvs/utilities/test/unit/src/org/netbeans/modules/openfile/resources/recent_files/File3.html,v
done
Checking in
utilities/test/unit/src/org/netbeans/modules/openfile/resources/recent_files/File3.html;
/cvs/utilities/test/unit/src/org/netbeans/modules/openfile/resources/recent_files/File3.html,v
 <--  File3.html
initial revision: 1.1
done
Checking in openide/windows/src/org/openide/windows/TopComponent.java;
/cvs/openide/windows/src/org/openide/windows/TopComponent.java,v  <-- 
TopComponent.java
new revision: 1.17; previous revision: 1.16
done
Checking in openide/windows/src/org/openide/windows/DummyWindowManager.java;
/cvs/openide/windows/src/org/openide/windows/DummyWindowManager.java,v  <-- 
DummyWindowManager.java
new revision: 1.5; previous revision: 1.4
done
Checking in openide/windows/manifest.mf;
/cvs/openide/windows/manifest.mf,v  <--  manifest.mf
new revision: 1.10; previous revision: 1.9
done
Checking in openide/windows/apichanges.xml;
/cvs/openide/windows/apichanges.xml,v  <--  apichanges.xml
new revision: 1.8; previous revision: 1.7
done
RCS file:
/cvs/utilities/test/unit/src/org/netbeans/modules/openfile/RecentFilesTest.java,v
done
Checking in
utilities/test/unit/src/org/netbeans/modules/openfile/RecentFilesTest.java;
/cvs/utilities/test/unit/src/org/netbeans/modules/openfile/RecentFilesTest.java,v
 <--  RecentFilesTest.java
initial revision: 1.1
done
Checking in utilities/nbproject/project.xml;
/cvs/utilities/nbproject/project.xml,v  <--  project.xml
new revision: 1.21; previous revision: 1.20
done
Comment 15 Thomas Preisler 2006-12-15 22:53:29 UTC
We (SunStudio) would like this fix to be backported to 5.5.1.
Comment 16 David Simonek 2007-01-02 12:47:32 UTC
OK, after offline discussions we understand importance of this enhancement for
SunStudio, I'll prepare the merge into release 551.
Comment 17 David Simonek 2007-01-02 14:30:51 UTC
Unfortunately, there are issues with backport - feature code uses Preferences
API and WindowManager API which is new in 6.0, so code would have to be
rewritten to use older API. IMHO risk of such solution is relatively high.
Comment 18 David Simonek 2007-01-02 16:48:49 UTC
Unfortunately, there are issues with backport - feature code uses Preferences
API and WindowManager API which is new in 6.0, so code would have to be
rewritten to use older API. IMHO risk of such solution is relatively high.
Comment 19 Thomas Preisler 2007-01-29 19:53:08 UTC
We (Sun Studio) agree not to backport the fix to 551. I will remove the MARS
keyword.
Comment 20 Thomas Preisler 2007-01-29 19:53:50 UTC
Removed MARS keyword.
Comment 21 David Simonek 2007-01-30 07:53:03 UTC
Thank you for your understanding and enjoy Recently used files list in 6.0. Thanks.
Comment 22 scwells72 2008-04-28 03:03:58 UTC
Created attachment 60727 [details]
Updated with changes to move line/selection up/down
Comment 23 scwells72 2008-04-28 03:05:09 UTC
Whoops, please ignore the attachment I just added.  Wrong issue!