Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357243

Summary: CTabFolder chevron menu does not use custom CTabFolderRenderer to render menu items
Product: [Eclipse Project] Platform Reporter: Radu Vlasov <vlasov.r>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, gheorghe
Version: 4.1   
Target Milestone: ---   
Hardware: All   
OS: Windows Vista   
Whiteboard: stalebug

Description Radu Vlasov CLA 2011-09-09 10:54:11 EDT
Build Identifier: I20110620-1631

CTabFolder.showList() ignores custom renderers set through CTabFolder.setRenderer()

CTabFolder.showList() calls CTabItem.getText() when creating menu item, yet getText() may return an empty string when the CTabItem-s are rendered using a custom renderer

Reproducible: Always

Steps to Reproduce:
1.Create a Java class R that derives from CTabFolderRenderer 
2.Have R.computeSize() call super.computeSize(...) by just forwarding all received arguments. super.computeSize(...) will return a Point object. Add 50 to the "x" field of that returned Point and return the modified Point. This will allocate enough space for custom rendering in each CTabItem
3.Have R.draw() paint something in the allocated space above
4.Create a CTabFolder object TF then call TF.setRenderer(...) passing an object of type R as parameter
5.Add at least two CTabItem objects to TF above and call setText("") on each of them
6.Open a shell containing the TF object
7.Shrink the composite containing TF until the chevron icon shows up
8.Click on the chevron and see that the popup menu contains only empty items
Comment 1 Lars Vogel CLA 2019-11-14 03:27:11 EST
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.

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

If the bug is still relevant, please remove the "stalebug" whiteboard tag.