Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 8459 - Recent files list is formatted poorly
Summary: Recent files list is formatted poorly
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M3   Edit
Assignee: Lynne Kues CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 2465 7365 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-01-25 10:14 EST by Nick Edgar CLA
Modified: 2002-03-15 17:21 EST (History)
3 users (show)

See Also:


Attachments
example formats (1.54 KB, text/html)
2002-02-08 18:05 EST, Lynne Kues 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 2002-01-25 10:14:02 EST
Build 20020123

When a long path is in the recent files list, it appears with an elipsis in 
the middle, e.g.
org.eclipse.ui/Eclip...cleEditorAction.java

It should not break up the file name unless it doesn't fit. e.g.
org.eclipse.ui/Ec.../CycleEditorAction.java

Compare with other apps.
Comment 1 Nick Edgar CLA 2002-02-01 16:30:44 EST
Also, mnemonics should only be assigned to the first 9 items.
Currently it uses the last digit, so the mnemonic gets reused if the list is 
long.  Having duplicates increases the number of needed steps.
Only the first 9 need rapid access with a mnemonic.
Comment 2 Eduardo Pereira CLA 2002-02-05 18:18:29 EST
*** Bug 7365 has been marked as a duplicate of this bug. ***
Comment 3 Lynne Kues CLA 2002-02-06 14:34:13 EST
It seems that most applications (at least the few I've looked at on Windows <g>) 
limit the size of the recently used file list to 9.  Do we want to do this vs. 
using mnemonics up to 9 and than nothing after that?  I guess the real question 
is whether or not 9 is a reasonable maximum.
Comment 4 Nick Edgar CLA 2002-02-06 15:20:08 EST
There is a separate PR for configuring the length.
If we allow this, then we should support >9.
Comment 5 Lynne Kues CLA 2002-02-06 15:41:49 EST
Posed my question above in the PR about allowing the recent files list size to 
be configurable.
Comment 6 Lynne Kues CLA 2002-02-08 18:01:49 EST
Polled the ui team about whether or not to truncate segments (vs. always showing 
full segment names) and about what parts of the path they think are most 
important for identifying the file.  General consensus that segments should not 
be truncated (looks cleaner, other apps don't truncate).  Somewhat general 
consensus that the first n segments of the file's path should be shown.  
(Note that from a java perspective this is probably not true, but the platform 
ui component is not java specific).

Using the following algorithm:

   Append first n segments until one does not fit.
   Append last n segments until one does not fit.
   Append "/.../".
   Append file name.

Note the filename will be truncated (i.e., ellipses put at the end) if it 
exceeds the maximum text length (which is 50).  This is what most other apps do 
and will keep the menu to a reasonable size (width-wise).  
Comment 7 Lynne Kues CLA 2002-02-08 18:05:56 EST
Created attachment 339 [details]
example formats
Comment 8 Lynne Kues CLA 2002-02-11 17:28:04 EST
fixed and released
Comment 9 Simon Arsenault CLA 2002-02-15 17:58:44 EST
*** Bug 2465 has been marked as a duplicate of this bug. ***
Comment 10 Lynne Kues CLA 2002-03-12 16:11:34 EST
Suggestion to use the following format instead of the current format:

  filename in pathname

For example:

  test.java in /org/eclipse/.../internal

Algorithm will be as follows and segment names will not be truncated

 - append file name 
 - append first n segments until one does not fit
 - append "..."
 - append last n segments until one does not fit

   

Comment 11 Lynne Kues CLA 2002-03-15 17:15:50 EST
Changed as follows:

    filename  [pathname]

for example:

    test.java  [org/eclipse/.../internal]
Comment 12 Lynne Kues CLA 2002-03-15 17:21:43 EST
Released fixes.