Community
Participate
Working Groups
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.
I believe the code that produced that truncated string should probably live in JFace and the string the fed to SWT?
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).
*** This bug has been marked as a duplicate of bug 119644 ***