[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Re: How to change default theme ?
|
Wayne Beaton wrote at Monday 12 May 2008 13:15:
> Do these links help?
>
> http://pookzilla.net/wp/2005/11/themes-howto/
>
>
http://dev.eclipse.org/blogs/wayne/2007/05/03/scaring-children-with-your-user-interface/
>
> For the second link, there should be an entry in the
> referenced .settings directory that you can override via a
> preferences.ini file as suggested in the posting (I'm not sure what the
> setting is).
>
> HTH,
>
> Wayne
>
> On Mon, 2008-05-12 at 12:12 +1000, Diego Tognola wrote:
>> Hi,
>>
>> I've created my own theme defined via the org.eclipse.ui.themes
>> extension. Starting the RCP application with a clean workspace, I have to
>> manually change to my theme via the preferences.
>>
>> Is there a way to change the default theme from 'Default' to my custom
>> theme ?
>>
>> Cheers,
>> Diego
Hi Wayne,
the 2nd link could be an approach - but the 'preferenceCustomization' is
ignored (any hints ??).
I also found an approach that works programatically. Calling the following
from the start(0 of my IApplication works:
IPreferenceStore apiStore = PrefUtil.getAPIPreferenceStore();
apiStore.setValue(IWorkbenchPreferenceConstants.PRESENTATION_FACTORY_ID,
MyDefaultPresentationFactory.ID);
Thanks
Diego