Community
Participate
Working Groups
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.
Created attachment 61876 [details] Source zip
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).
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.
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
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.
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.
Thanks Nick!
Remy is now responsible for watching the [EditorMgmt] component area.
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.