Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to listen theme change event ??
How to listen theme change event ?? [message #1062190] Thu, 06 June 2013 09:09
SD Khan is currently offline SD Khan
Messages: 63
Registered: May 2013
Member
Hi all,

I want's to listen the theme change event in my eclipse rcp application , i have done the following steps.

1. Created a rcp application (3.x)

2. created extension point "org.eclipse.e4.ui.css.swt.theme" and added two themes in it and set the respective css files for each theme.

3. Added a ViewerPreferencePage, which given the option to change theme.


Now, when i change theme , it work's fine and applied on all the swt controls which i have specified in css file, Actually i want's to listen the event when theme is changed ??,

I have done the following steps.

Register theme.
PlatformUI.getWorkbench().getThemeManager().addPropertyChangeListener(new ThemeChangeHandler());

"ThemeChangeHandler" is the class which implements the "org.eclipse.jface.util.IPropertyChangeListener".

But nothing happens when theme is changed and my listener doesn't fire,


Any help/clue/idea/hint will be appreciated Razz .

Thanks,
SDK


Previous Topic:Branding plugin : Bundle localisation
Next Topic:Perspective Extension Stack Views
Goto Forum:
  


Current Time: Sat Jul 26 11:30:52 EDT 2014

Powered by FUDForum. Page generated in 0.02407 seconds