Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322623 - Editor tabs do not show ellipsis for long filenames when using new style tabs
Summary: Editor tabs do not show ellipsis for long filenames when using new style tabs
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows Vista
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-13 03:33 EDT by Jörg Mann CLA
Modified: 2020-07-04 03:06 EDT (History)
4 users (show)

See Also:


Attachments
Traditional style tabs with ellipsis (5.51 KB, image/x-png)
2010-08-13 03:34 EDT, Jörg Mann CLA
no flags Details
new style tabs w/o ellipsis (7.78 KB, image/x-png)
2010-08-13 03:37 EDT, Jörg Mann CLA
no flags Details
Different Files look identical (ConsumptionBean vs ConsumptionBeanTest). (40.36 KB, image/png)
2012-07-29 12:01 EDT, Jonathon Roberts CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Mann CLA 2010-08-13 03:33:28 EDT
Build Identifier: I20100608-0911

When editor tabs become small in size and large in number, the content is trimmed at the end and no ellipse is displayed. This only happens with the new style tabs. When you switch to traditional style tabs all is fine.

Reproducible: Always

Steps to Reproduce:
1. Disable "Show traditional style tabs" in Preferences -> General -> Appearance
2. Open enough java editors in java perspective with long filenames so their names won't fit in the tabs
Comment 1 Jörg Mann CLA 2010-08-13 03:34:50 EDT
Created attachment 176522 [details]
Traditional style tabs with ellipsis
Comment 2 Jörg Mann CLA 2010-08-13 03:37:29 EDT
Created attachment 176523 [details]
new style tabs w/o ellipsis
Comment 3 Remy Suen CLA 2010-08-13 06:17:26 EDT
I think the intent is to actually not show the ellipsis. In any case, whatever the intent is, there is indeed an inconsistency here.
Comment 4 Eric Moffatt CLA 2010-08-17 15:12:39 EDT
Passing to SWT for comment...

Is this related to the new CTF rendering ?
Comment 5 Felipe Heidrich CLA 2010-08-18 11:37:43 EDT
I don't think SWT is putting the ellipsis there, 
Bog, do you know who is do it ?
Comment 6 Jonathon Roberts CLA 2012-07-29 12:01:14 EDT
Created attachment 219304 [details]
Different Files look identical (ConsumptionBean vs ConsumptionBeanTest).

Hopefully this was not intentional.  In this screenshot two different classes are open.  One named ConsumptionBean and the other ConsumptionBeanTest. Without the ellipsis I can't tell the difference or that there is more to the name.  It's pretty annoying.
Comment 7 Daniel Herding CLA 2014-10-30 09:23:23 EDT
Responsible code is in
org.eclipse.swt.custom.CTabFolderRenderer.useEllipses():

/*
 * Return whether to use ellipses or just truncate labels
 */
boolean useEllipses() {
    return parent.simple;
}

This behavior is irritating. Ellipses should be visible regardless of whether I have enabled rounded tab corners or not.
Comment 8 Daniel Herding CLA 2014-10-30 09:47:59 EDT
From the above comments, it is obvious that leaving out the ellipses is not user-friendly.

Please change the implementation so that CTabFolderRenderer always adds ellipses. Ideally, the default implementation of useEllipses() should always return, and the method visibility should be increased to "protected" so that implementors of RCP applications have a way of configuring ellipsis usage.
Comment 9 Leo Ufimtsev CLA 2014-10-30 10:56:36 EDT
As a side note:
I tested on Linux Fedora 20 w/ Eclipse 4.4.1 Gtk2. There are no ellipses either. 

I.e, it doesn't seem to be windows-specific.
Comment 10 Eclipse Genie CLA 2020-07-04 03:06:45 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.

--
The automated Eclipse Genie.