Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Getting color set in theme (Window->Preferences->Workbench->Color And Fonts)
Getting color set in theme (Window->Preferences->Workbench->Color And Fonts) [message #283687] Fri, 08 April 2005 14:58
Eclipse User
Originally posted by: my.plugin.baby.gmail.com

This is theme defition in my plugin.xml:

<extension
point="org.eclipse.ui.themes">
<themeElementCategory
label="Test theme"
id="com.testtheme.themeCategory">
</themeElementCategory>

<colorDefinition
value="COLOR_YELLOW"
isEditable="true"
label="Primary color"
categoryId="com.testtheme.themeCategory"
id="com.testtheme.themeColor1"/>

My question is "How to access this definition from running plugin?".
Simply how to USE this theme thing in sourcecode?
I've tried to call
PlatformUI.getWorkbench().getThemeManager().getTheme("com.testtheme.themeCategory ");
but it throws NullPointerException.

Thanks, Marty
Previous Topic:eclipse / window manager crash
Next Topic:BuildAction doesnt save resources
Goto Forum:
  


Current Time: Tue Jul 29 13:11:36 EDT 2014

Powered by FUDForum. Page generated in 0.02647 seconds