Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Problem with org.eclipse.swt.widgets.TabFolder
Problem with org.eclipse.swt.widgets.TabFolder [message #1058035] Fri, 10 May 2013 14:51 Go to next message
Julia Kurde is currently offline Julia Kurde
Messages: 63
Registered: November 2011
Location: Berlin, Germany
Member
Hi,

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
Re: Problem with org.eclipse.swt.widgets.TabFolder [message #1058199 is a reply to message #1058035] Mon, 13 May 2013 08:09 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

Hi Julia,

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.

Regards,
Ralf

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=215015
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=329681
--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem with org.eclipse.swt.widgets.TabFolder [message #1058235 is a reply to message #1058199] Mon, 13 May 2013 09:57 Go to previous message
Julia Kurde is currently offline Julia Kurde
Messages: 63
Registered: November 2011
Location: Berlin, Germany
Member
Hi Ralf,

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!

Regards,
Julia

[1] http://nightly.mozilla.org/
Previous Topic:[ANN] RAP 2.1 M2 is available
Next Topic:SWT Browser PDF always on top
Goto Forum:
  


Current Time: Mon Sep 22 06:15:07 GMT 2014

Powered by FUDForum. Page generated in 0.01823 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software