Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsProblem with org.eclipse.swt.widgets.TabFolder
https://www.eclipse.org/forums/index.php/mv/msg/487261/1058035/#msg_1058035
I have a little problem with org.eclipse.swt.widgets.TabFolder:
When there are more tabItems than fit into the width of the tabFolder, then they are cut off. See the example in the attached image.
This is produced by simply adding these lines of code to View.createPartControl(Composite) of the example template
'RAP Application with a View':
TabFolder folder = new TabFolder(parent , SWT.TOP);
TabItem item;
for (int i=0; i<10; i++) {
item = new TabItem(folder, SWT.NONE);
item.setText("Item " + i);
}
In the RCP version there appear some arrow buttons to scroll the tabItems, but in the RAP these buttons are missing.
Thanks,
Julia]]>Julia Kurde2013-05-10T14:51:36-00:00Re: Problem with org.eclipse.swt.widgets.TabFolder
https://www.eclipse.org/forums/index.php/mv/msg/487261/1058199/#msg_1058199
this is a known limitation of the TabFolder implementation [1]. We'd
love to re-implement the TabFolder [2], but couldn't find the time yet.
Professional services for RAP and RCP? http://eclipsesource.com/services/rap/]]>Ralf Sternberg2013-05-13T08:09:46-00:00Re: Problem with org.eclipse.swt.widgets.TabFolder
https://www.eclipse.org/forums/index.php/mv/msg/487261/1058235/#msg_1058235
Reading the bug reports reminded me that there is also CTabFolder. This one has a drop down menu for the hidden tabs. Although it would be more elegant to scroll the tabs like e.g. Nightly[1] (and I guess Firefox, too) is doing it. But for now the CTabFolder works.
Thanks!