Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Change view tab color in a product.
Change view tab color in a product. [message #461973] Fri, 19 January 2007 13:08 Go to next message
Eclipse User
Originally posted by: susan_Ross.hotmail.com

When you change tab color in Eclipse preferences ( window > Preferences...
> General > Appearance > Color and Fonts > View and Editor Folders) it
adds in the file:

<workspace> .metadata\.plugins\org.eclipse.core.runtime\.settings\org.ec lipse.ui.workbench.prefs

the following preferences:

org.eclipse.ui.workbench.ACTIVE_TAB_BG_START=255,128,64
org.eclipse.ui.workbench.ACTIVE_TAB_BG_END=255,255,0

How can I set this preferences programatically in my product?

I also tried to set both following options in plugin_customization.ini
file but it neither worked:

org.eclipse.ui.workbench/ACTIVE_TAB_BG_START=125,179,114
org.eclipse.ui/ACTIVE_TAB_BG_START=125,179,114

It is very important, can someone help me? Please

NOTE: I need to set this options programming because It depends of
different configurations.

Best Regards,
Susan
Re: Change view tab color in a product. [message #769791 is a reply to message #461973] Thu, 22 December 2011 17:10 Go to previous message
Christophe Moine is currently offline Christophe Moine
Messages: 14
Registered: July 2009
Junior Member
you should try something like:

workbench.getThemeManager().getCurrentTheme().getColorRegistry()
					.put(IWorkbenchThemeConstants.ACTIVE_TAB_BG_END, ....);


I hope that helps.
Previous Topic:Executing a command twice fails
Next Topic:Changed View ID, now it never displays
Goto Forum:
  


Current Time: Sat Oct 25 02:58:31 GMT 2014

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

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