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

Bug 322822

Summary: TabFolder missing scroll widget when too many tabs
Product: [Eclipse Project] Platform Reporter: cathy.ruby
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: lshanmug, Silenio_Quarti, skovatch
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description cathy.ruby CLA 2010-08-16 13:23:58 EDT
Build Identifier: 20100617-1415

If there are too many tabs in the TabFolder to show in the application window (i.e., too wide), a Mac (cocoa) SWT application will not show a "scroll" widget to let you browse offscreen tabs.  This scroll widget IS visible when exporting to and running under Windows 7.

For example:
TabFolder in ViewPart, added 25 tabs.  This is too wide for my application window, so it will show the first 10 or so and additional tabs simply run off the screen to the right.  I can expand the application window (to a point) to see them, but if there are too many tabs to show for my screen resolution then they will never be visible.

Reproducible: Always

Steps to Reproduce:
1. Create a ViewPart with a org.eclipse.swt.widgets.TabFolder
2. Add many tabs to the TabFolder
3. Run on a Mac (cocoa).
Comment 1 Scott Kovatch CLA 2010-08-18 14:53:39 EDT
Unfortunately NSTabView doesn't support a popup or scrollable view when there are more tabs than space available; the Mac UI guidelines discourage having that many tabs. :-)

I can set the tab view to allow label truncation, but that doesn't seem to have any effect.
Comment 2 Lakshmi P Shanmugam CLA 2017-07-03 05:58:18 EDT
As mentioned in comment #1, this is not supported natively by NSTabView.