Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Eclipse Tabs
Eclipse Tabs [message #327195] Mon, 14 April 2008 05:07 Go to next message
Eclipse UserFriend
Originally posted by: anupgokhale.rediffmail.com

Hi all.

Within eclipse itself, all the views and editors are displayed in tabs
that appear as curved. But in the RCP application that I create, the
views/editors appear in normal rectangular tabs. How do I use the curved
tabs in my RCP app?

Regards,
Anup
Re: Eclipse Tabs [message #327211 is a reply to message #327195] Mon, 14 April 2008 09:00 Go to previous messageGo to next message
Matthias Treitler is currently offline Matthias TreitlerFriend
Messages: 117
Registered: July 2009
Senior Member
Hi!

I have not tried myself yet, but you can have curved tabs by simply
calling "setSimple(false)" on the "TabFolder" object. Also try
"setBorderVisible(false)".

Best regards,
Matthias

PS: Also check this document:
http://www.ibm.com/developerworks/edu/os-dw-os-eclipse-rcp1. html?S_TACT=105AGX44&S_CMP=EDU
Re: Eclipse Tabs [message #327213 is a reply to message #327211] Mon, 14 April 2008 10:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: anupgokhale.rediffmail.com

The technique you mention below can very well be used to customize the
appearance of a tabfolder/CTabFoler that has been placed inside a view
or editor. What I am looking for is the curvy tabs Eclipse displays for
each editor and view.

> Hi!
>
> I have not tried myself yet, but you can have curved tabs by simply
> calling "setSimple(false)" on the "TabFolder" object. Also try
> "setBorderVisible(false)".
>
> Best regards,
> Matthias
>
> PS: Also check this document:
> http://www.ibm.com/developerworks/edu/os-dw-os-eclipse-rcp1. html?S_TACT=105AGX44&S_CMP=EDU
>
>
My hunch is that I will be able to achieve this by using the setProperty
of IFolderLayout in Perspective.java's createInitialLayout method. But I
am not able to get it work as I have no idea regarding teh property ID
and value to set.

Regards,
Anup
Re: Eclipse Tabs [message #327217 is a reply to message #327213] Mon, 14 April 2008 10:53 Go to previous messageGo to next message
Matthias Treitler is currently offline Matthias TreitlerFriend
Messages: 117
Registered: July 2009
Senior Member
Hi!

That one is easy!
In your custom WorkbenchAdvisor class override the "initialize" method!

Code snippet:
@Override
public void initialize(IWorkbenchConfigurer configurer) {

super.initialize(configurer);
PlatformUI.getPreferenceStore().setValue(

IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS, false);

}

For me it worked this way!

Best regards,
Matthias
Re: Eclipse Tabs [message #327219 is a reply to message #327217] Mon, 14 April 2008 11:18 Go to previous message
Eclipse UserFriend
Originally posted by: anupgokhale.rediffmail.com

Matthias wrote:
> Hi!
>
> That one is easy! In your custom WorkbenchAdvisor class override the
> "initialize" method!
>
> Code snippet:
> @Override
> public void initialize(IWorkbenchConfigurer configurer) {
>
> super.initialize(configurer);
> PlatformUI.getPreferenceStore().setValue(
>
> IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS, false);
>
> }
>
> For me it worked this way!
>
> Best regards,
> Matthias
>
>
Exactly what I was looking for. Thanks a lot.

Regards,
Anup
Previous Topic:A slight problem in Tree Viewer
Next Topic:TreeViewer and VIRTUAL style
Goto Forum:
  


Current Time: Sat Dec 21 14:13:25 GMT 2024

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

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

Back to the top