Bug 553721 - View title was trimmed when there is lots view opened at same time
Summary: View title was trimmed when there is lots view opened at same time
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.10   Edit
Hardware: PC Windows 10
: P3 normal with 11 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-03 15:42 EST by Hongying CLA
Modified: 2020-06-12 21:29 EDT (History)
3 users (show)

See Also:


Attachments
eclipse3.8 behavior (4.10 KB, image/png)
2019-12-03 15:42 EST, Hongying CLA
no flags Details
eclipse4.x behavior (9.02 KB, image/png)
2019-12-03 15:43 EST, Hongying CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hongying CLA 2019-12-03 15:42:12 EST
Created attachment 280841 [details]
eclipse3.8 behavior

We have an RCP application, with eclipse 3.8, if user opens lots Views at same time,  the visible views will be limited to 3 or 4 and their view titles are fully displayed, extra views were moved to dropdown list:

 

With eclipse 4.x, if user opens lots Views, all views will be visible and their view title was trimmed, no view moved to dropdown list,  
 

Please change this behavior to similar as eclipse3.x
Comment 1 Hongying CLA 2019-12-03 15:43:25 EST
Created attachment 280842 [details]
eclipse4.x behavior
Comment 2 Rolf Theunissen CLA 2019-12-04 08:47:36 EST
This behavior is defined in the StackRenderer. The minimum number of visible characters is 1, unless the tabs are in a shared area then the minimum number is 15.

As a workaround you could try to wrap the Stack in a MArea, then it will probably use the 15 character minimum.

Otherwise you could use a custom StackRenderer to override this behavior. You need to provide a custom IRendererFactory to the E4 model, check out the "rendererFactoryUri" property: https://wiki.eclipse.org/Eclipse4/RCP/Modeled_UI/Rendering_the_Model
Comment 3 Drake Thomson CLA 2020-06-10 15:50:37 EDT
Is there a planned date/version for this to be fixed?

I would like to vote for this as well but it doesn't seem to be letting me.

Please advise.
Thanks.
Comment 4 Rolf Theunissen CLA 2020-06-11 02:37:02 EDT
@Lars could/should the minimal amount of shown characters be made configurable? Maybe by CSS?
Comment 5 Lars Vogel CLA 2020-06-11 03:36:14 EDT
If the widget supports this, we could allow configuration via CSS.

Drake/ Hongying, are you interested in providing a patch via Gerrit?
Comment 6 Hongying CLA 2020-06-12 21:29:10 EDT
Lars, 
Thanks for the suggestion. We currently do not use CSS in Tab title area. so no sure how it works. If you can provide sample code, we would happy to try in our code.  

Thanks,
Hongying