Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » hiding tab
hiding tab [message #490820] Sun, 11 October 2009 14:46 Go to next message
Ido Mising name is currently offline Ido Mising nameFriend
Messages: 24
Registered: July 2009
Junior Member
Hi,
I have an editor (emf editor). And I only want one of the tabs in the editor.
If I do not add the other pages, I still see one tab in the tab selection. Can I hide the tab, so the user will not see it is a multipageeditor?
Re: hiding tab [message #491074 is a reply to message #490820] Tue, 13 October 2009 07:22 Go to previous messageGo to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

I think of two solutions :
- copy the code responsible for the tab that you are intersted in
- set height/and/or width of each tab of the multipage-edtior to 0

Regards,

Aurelien Pupier


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: hiding tab [message #491081 is a reply to message #491074] Tue, 13 October 2009 07:58 Go to previous messageGo to next message
Ido Mising name is currently offline Ido Mising nameFriend
Messages: 24
Registered: July 2009
Junior Member
since it is generated by emf, it is not that simple to copy the code.
how do i set the height and width of the tab?
Re: hiding tab [message #491083 is a reply to message #491074] Tue, 13 October 2009 08:18 Go to previous messageGo to next message
Ido Mising name is currently offline Ido Mising nameFriend
Messages: 24
Registered: July 2009
Junior Member
FOUND IT:

//the text must be empty so it will not be shown in the tab
setPageText(index, "");
		
//hide the tab
CTabFolder tabFolder = (CTabFolder)super.getContainer();
tabFolder.setSingle(true);
Re: hiding tab [message #602422 is a reply to message #491074] Tue, 13 October 2009 07:58 Go to previous messageGo to next message
Ido Mising name is currently offline Ido Mising nameFriend
Messages: 24
Registered: July 2009
Junior Member
since it is generated by emf, it is not that simple to copy the code.
how do i set the height and width of the tab?
Re: hiding tab [message #602428 is a reply to message #491074] Tue, 13 October 2009 08:18 Go to previous message
Ido Mising name is currently offline Ido Mising nameFriend
Messages: 24
Registered: July 2009
Junior Member
FOUND IT:


//the text must be empty so it will not be shown in the tab
setPageText(index, "");

//hide the tab
CTabFolder tabFolder = (CTabFolder)super.getContainer();
tabFolder.setSingle(true);
Previous Topic:hiding tab
Next Topic:Can one trigger a refresh via/after ant-script?
Goto Forum:
  


Current Time: Tue Apr 16 21:47:48 GMT 2024

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

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

Back to the top