Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357243 - CTabFolder chevron menu does not use custom CTabFolderRenderer to render menu items
Summary: CTabFolder chevron menu does not use custom CTabFolderRenderer to render menu...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.1   Edit
Hardware: All Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-09 10:54 EDT by Radu Vlasov CLA
Modified: 2019-11-14 03:27 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.