| Summary: | Editor tabs do not show ellipsis for long filenames when using new style tabs | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Jörg Mann <joerg.mann> | ||||||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||||||
| Severity: | minor | ||||||||||
| Priority: | P3 | CC: | Daniel.Herding, eclipse.felipe, gheorghe, remy.suen | ||||||||
| Version: | 3.6 | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows Vista | ||||||||||
| Whiteboard: | stalebug | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Jörg Mann
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. |