Community
Participate
Working Groups
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
Created attachment 176522 [details] Traditional style tabs with ellipsis
Created attachment 176523 [details] new style tabs w/o ellipsis
I think the intent is to actually not show the ellipsis. In any case, whatever the intent is, there is indeed an inconsistency here.
Passing to SWT for comment... Is this related to the new CTF rendering ?
I don't think SWT is putting the ellipsis there, Bog, do you know who is do it ?
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.
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.
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.
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.
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.