Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to set style for the multipage editor tab text (tab name)?
How to set style for the multipage editor tab text (tab name)? [message #332685] Wed, 05 November 2008 05:16 Go to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

Hi,

I am working on RCP using Eclipse 3.2(WTP). I would like to know setting the style (foreground color, font) for the multipage editor tab text i.e the name/text of the multipage editor tab.

Any help will be appreciated.

Thanks,
Prasanna
Re: How to set style for the multipage editor tab text (tab name)? [message #332690 is a reply to message #332685] Wed, 05 November 2008 10:58 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
I couldn't see any API for that. Probably you have to raise a bug to get
access to the CTabItem of the tab.

- Prakash

--

http://blog.eclipse-tips.com

"Prasanna" <automatic@javalobby.org> wrote in message
news:30721950.31701225862227525.JavaMail.root@cp1.dzone.com...
> Hi,
>
> I am working on RCP using Eclipse 3.2(WTP). I would like to know setting
> the style (foreground color, font) for the multipage editor tab text i.e
> the name/text of the multipage editor tab.
>
> Any help will be appreciated.
>
> Thanks,
> Prasanna
Re: How to set style for the multipage editor tab text (tab name)? [message #332691 is a reply to message #332685] Wed, 05 November 2008 11:05 Go to previous messageGo to next message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
Prasanna wrote:
> I am working on RCP using Eclipse 3.2(WTP). I would like to know setting the style (foreground color, font) for the multipage editor tab text i.e the name/text of the multipage editor tab.

Are you talking about the MPEP class?

https://bugs.eclipse.org/bugs/show_bug.cgi?id=149719
Re: How to set style for the multipage editor tab text (tab name)? [message #332790 is a reply to message #332691] Mon, 10 November 2008 04:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

No I meant CTabItem text that is used in MPEP class.

Thanks,
Prasanna
Re: How to set style for the multipage editor tab text (tab name)? [message #332791 is a reply to message #332790] Mon, 10 November 2008 06:21 Go to previous messageGo to next message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
Prasanna wrote:
> No I meant CTabItem text that is used in MPEP class.

I don't think you can control the individual tabs.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=75411
Re: How to set style for the multipage editor tab text (tab name)? [message #332793 is a reply to message #332791] Mon, 10 November 2008 06:37 Go to previous messageGo to next message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
Note that you should be able to change the font (I know you can
italicize/bold it anyway), but it seems that colours won't do.
Re: How to set style for the multipage editor tab text (tab name)? [message #333159 is a reply to message #332793] Thu, 27 November 2008 06:01 Go to previous message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

Hi,
Yeah I could change the font style of the multipage editor tab using the following code:
Object oTabFolder  = getContainer();
if((oTabFolder != null) && (oTabFolder instanceof CTabFolder)){
	CTabFolder tabFolder = (CTabFolder)oTabFolder;
	CTabItem tabItem = tabFolder.getItem(index);
	if(tabItem != null){
		tabItem.setFont(tabFont);
	}
}

Thanks,
Prasanna
Previous Topic:Build Platform Runtime Binary from Source
Next Topic:Local Mirror Update Site management
Goto Forum:
  


Current Time: Tue Jul 16 13:58:46 GMT 2024

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

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

Back to the top