[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Re: How to change default theme ?
|
The example on the 2nd link works with 3.3 but not 3.4M7 - so I guess
there's a change or a bug. Nevermind and thanks again. I'll do it
programatically ;-)
Wayne Beaton wrote at Monday 12 May 2008 22:19:
> Check for misspellings (that always trips me up).
>
> Did you add the required entry to the product declaration in the
> plugin.xml file?
>
> Wayne
>
> On Mon, 2008-05-12 at 14:44 +1000, Diego Tognola wrote:
>> 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