Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Rich Client Platform - how to set preferences prgrammatically
Rich Client Platform - how to set preferences prgrammatically [message #165992] Thu, 04 December 2003 15:35 Go to next message
Eclipse UserFriend
I am using RCP of version 3M5. SInce it is devoid of any preferences
window, how can I set preferences programmatically such as showing the color
on toolbar icons?
Re: Rich Client Platform - how to set preferences prgrammatically [message #166141 is a reply to message #165992] Thu, 04 December 2003 18:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: e.gribnau.wanadoo.nl

The preference page code is in the org.eclipse.ui plugin.

If you use:
org.eclipse.ui.actions.ActionFactory.PREFERENCES.create(.... )
you get an action than can start the preference pages.
You can call run on that action.

I added an action to my menu that calls that action. Works great.
I also added the standard preference pages for 'Appearance', 'Fonts',
'Startup', and 'Keys' to a category I defined. Unfortunately they use
some 'internal' classes, so no guarantee that they will stay there.

Good Luck,
Erwin.

Zheng Yi wrote:
> I am using RCP of version 3M5. SInce it is devoid of any preferences
> window, how can I set preferences programmatically such as showing the color
> on toolbar icons?
>
>
Re: Rich Client Platform - how to set preferences prgrammatically [message #166277 is a reply to message #166141] Fri, 05 December 2003 07:11 Go to previous message
Eclipse UserFriend
Thanks. I will try that.
"Erwin Gribnau" <e.gribnau@wanadoo.nl> wrote in message
news:bqokbo$q8j$1@eclipse.org...
> The preference page code is in the org.eclipse.ui plugin.
>
> If you use:
> org.eclipse.ui.actions.ActionFactory.PREFERENCES.create(.... )
> you get an action than can start the preference pages.
> You can call run on that action.
>
> I added an action to my menu that calls that action. Works great.
> I also added the standard preference pages for 'Appearance', 'Fonts',
> 'Startup', and 'Keys' to a category I defined. Unfortunately they use
> some 'internal' classes, so no guarantee that they will stay there.
>
> Good Luck,
> Erwin.
>
> Zheng Yi wrote:
> > I am using RCP of version 3M5. SInce it is devoid of any preferences
> > window, how can I set preferences programmatically such as showing the
color
> > on toolbar icons?
> >
> >
>
Previous Topic:Classpath Woes ...
Next Topic:Error on starting Application - can't recreate perspective
Goto Forum:
  


Current Time: Tue Jul 22 08:33:26 EDT 2025

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

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

Back to the top