Eclipse Tabs [message #327195] |
Mon, 14 April 2008 05:07 |
Eclipse User |
|
|
|
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 #327213 is a reply to message #327211] |
Mon, 14 April 2008 10:20 |
Eclipse User |
|
|
|
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 #327219 is a reply to message #327217] |
Mon, 14 April 2008 11:18 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03615 seconds