Bug 179118 - [EditorMgmt] Recently used files chooser
Summary: [EditorMgmt] Recently used files chooser
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-23 16:19 EDT by Nick Edgar CLA
Modified: 2019-09-06 16:16 EDT (History)
3 users (show)

See Also:


Attachments
Source zip (9.82 KB, application/zip)
2007-03-23 16:21 EDT, Nick Edgar CLA
no flags Details
Binary plug-in jar (21.25 KB, application/octet-stream)
2007-03-23 16:22 EDT, Nick Edgar CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2007-03-23 16:19:53 EDT
3.3 M5

While the Quick Assist helps in navigating around the environment, I find that the navigation I want to do most often is between files I've recently used, whether they're still open or not.

The attached plug-in provides a Recently Used Files chooser, similar to Quick Assist but showing only the most recently used files (up to 15).  This is similar to the list shown in the File menu, but is easier to access and (hopefully) appears closer to the user's locus of attention.  

I typically go to the Keys pref page and bind it to Ctrl+E, reassigning Quick Assist to Ctrl+Shift+E.
Comment 1 Nick Edgar CLA 2007-03-23 16:21:11 EDT
Created attachment 61876 [details]
Source zip
Comment 2 Nick Edgar CLA 2007-03-23 16:22:08 EDT
Created attachment 61879 [details]
Binary plug-in jar

The binary jar can be dropped into the plugins dir of a 3.3 install (might work on earlier versions too, but that's untested).
Comment 3 Nick Edgar CLA 2007-03-23 16:26:43 EDT
A few notes:

- I factored this into a separate plugin so that it could be easily installed into a base eclipse.

- It copies the FilteringInfoPopup class from the incubator package (also used by Quick Assist).  I think I may have made a tweak or two to that class, so if this patch is adopted it should be compared to the one in the workbench.

- It uses lots of workbench internals to get at the editor history.

- I had to use a reflect hack to gain visibility to Workbench.getEditorHistory().  See RecentFilesHandler.getEditorHistory().  That method has been made public in 3.3 M6, so the hack could be removed if this goes into the workbench.

Comment 4 Nick Edgar CLA 2007-03-23 16:29:48 EDT
Steps to rebind the keys as above:
- Window > Preferences > Keys
- select the Window category
- select the Quick Assist command
- select the Ctrl+E assignment and click Remove
- in the Key Sequence Name field, press Ctrl+Shift+E, and click Add
- select the Recently Used Files command
- in the Key Sequence Name field, press Ctrl+E, and click Add
Comment 5 Nick Edgar CLA 2007-03-23 16:31:43 EDT
Also note: this only defines the Recently Used Files command and a default handler.  It does not appear in the Window > Navigation menu, but probably should if it's adopted.
Comment 6 Nick Edgar CLA 2007-03-23 16:38:29 EDT
Another point about its functionality: although the list shows only the simple names (i.e. what had been showing in the editor tab), the info section at the bottom of the popup shows the tooltip (i.e. the full path), less the simple name if it's a suffix.  

This is useful for distinguishing between multiple files with the same simple name.
Comment 7 Boris Bokowski CLA 2007-03-26 14:58:44 EDT
Thanks Nick!
Comment 8 Boris Bokowski CLA 2009-11-17 13:02:03 EST
Remy is now responsible for watching the [EditorMgmt] component area.
Comment 9 Eclipse Webmaster CLA 2019-09-06 16:16:16 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.