Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Showing CTabItem in CTabFolder
Showing CTabItem in CTabFolder [message #327813] Sat, 03 May 2008 19:38 Go to next message
Eclipse UserFriend
Originally posted by: micha.bgl.gmx.de

Hi there,

I have a CTabFolder with two tabs. How I can force CTabFolder to show the
cTabItem I want to let show in my View ? I tried
ctabfolder.showItem(ctabitem). But it didn't work. nothing changed. Thanks
for responding.

regards,
micha
Re: Showing CTabItem in CTabFolder [message #327814 is a reply to message #327813] Sun, 04 May 2008 04:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

Hello,

this should solve your problem:

yourTabFolder.showItem(yourItem);
yourTabFolder.setSelection(yourItem);

With kind regards

Marcel
Re: Showing CTabItem in CTabFolder [message #327817 is a reply to message #327814] Sun, 04 May 2008 05:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: micha.bgl.gmx.de

It works fine. Thanks for the fast response. But I wondered why
showItem(myItem) doesn't work without setSelection, because in the method
setSelection(int index) the method showItem is called.

"Marcel" <automatic@javalobby.org> schrieb im Newsbeitrag
news:3346048.4731209888623259.JavaMail.root@cp1.dzone.com...
> Hello,
>
> this should solve your problem:
>
> yourTabFolder.showItem(yourItem);
> yourTabFolder.setSelection(yourItem);
>
> With kind regards
>
> Marcel
>
Re: Showing CTabItem in CTabFolder [message #327833 is a reply to message #327817] Mon, 05 May 2008 09:56 Go to previous message
Eclipse UserFriend
You only need to call setSelection(...). The purpose of showItem(...) is to
ensure that an item's tab appears in the row of tabs at the top (ie.- is not
scrolled off of the right), not to show its contents.

Grant

"Michael Weber" <micha.bgl@gmx.de> wrote in message
news:fvk14t$h1c$1@build.eclipse.org...
> It works fine. Thanks for the fast response. But I wondered why
> showItem(myItem) doesn't work without setSelection, because in the method
> setSelection(int index) the method showItem is called.
>
> "Marcel" <automatic@javalobby.org> schrieb im Newsbeitrag
> news:3346048.4731209888623259.JavaMail.root@cp1.dzone.com...
> > Hello,
> >
> > this should solve your problem:
> >
> > yourTabFolder.showItem(yourItem);
> > yourTabFolder.setSelection(yourItem);
> >
> > With kind regards
> >
> > Marcel
> >
>
Previous Topic:Where is "Manage Configuration" gone in 3.4M6
Next Topic:Perspective ordering not kept be workbench
Goto Forum:
  


Current Time: Sat May 03 22:39:36 EDT 2025

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

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

Back to the top