Bug 172295 - [JFace] Need uniform stratergy to handle truncation.
Summary: [JFace] Need uniform stratergy to handle truncation.
Status: RESOLVED DUPLICATE of bug 119644
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Susan McCourt CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-01-31 05:32 EST by Tejas Parajia CLA
Modified: 2009-07-09 17:18 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tejas Parajia CLA 2007-01-31 05:32:17 EST
Currently Different component of Eclipse handle String truncation differently , SWT label will have "..." Ellipses placed in the middle of the string while the View part title will have "..." Ellipses placed at the end of the string.


There needs to uniform mechanism and preferably exposed API for application developer's customization.

Ellipses at the end of the string is preferable.
Comment 1 Steve Northover CLA 2007-01-31 07:57:39 EST
I believe the code that produced that truncated string should probably live in JFace and the string the fed to SWT?
Comment 2 Susan McCourt CLA 2007-06-28 15:55:11 EDT
Not clear that uniform strategy is appropriate, as it may differ for different UI elements.  An application policy would have to also allow different strategies for different UI elements.  In some cases we even truncate the ellipsis since it provides little value when real estate is tight.  

I think it would be challenging to come up with a strategy that fits all cases, but public methods to handle truncation in different ways might be nice (vs. the many implementors of shortenText* that we have now).
Comment 3 Susan McCourt CLA 2009-07-09 17:18:20 EDT

*** This bug has been marked as a duplicate of bug 119644 ***