Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Color Preference - ColorFieldEditor
Color Preference - ColorFieldEditor [message #313608] Tue, 20 March 2007 11:45 Go to next message
Eclipse UserFriend
Originally posted by: durchgedreht.gmx.de

How do I get the color from my Preference store?
Sorry, but I didn't found it in the FAQ and I'm in a hurry...

Code in my FieldEditorPreferencePage:
addField(new ColorFieldEditor(PrefConstants.COLOR_DIRECT_LINK, "color of=
a =

direct link", getFieldEditorParent()));

Code elsewhere:
???? color =3D pref.get????(PrefConstants.COLOR_DIRECT_LINK);

Thanks!
Dennis


-- =

Erstellt mit Operas revolution=C3=A4rem E-Mail-Modul: http://www.opera.c=
om/mail/
Re: Color Preference - ColorFieldEditor [message #313616 is a reply to message #313608] Tue, 20 March 2007 13:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vb.prismtech.com

You could get it using the PreferencesConverter class:

IPreferenceStore pf = MyPlugin.getDefault().getPreferenceStore();
RGB color = PreferenceConverter.getColor(pf, key);



"Dennis Meyer" <durchgedreht@gmx.de> wrote in message
news:op.tphvewz3ro8wrf@hafenp2-067.rz.uni-frankfurt.de...
How do I get the color from my Preference store?
Sorry, but I didn't found it in the FAQ and I'm in a hurry...

Code in my FieldEditorPreferencePage:
addField(new ColorFieldEditor(PrefConstants.COLOR_DIRECT_LINK, "color of a
direct link", getFieldEditorParent()));

Code elsewhere:
???? color = pref.get????(PrefConstants.COLOR_DIRECT_LINK);

Thanks!
Dennis


--
Erstellt mit Operas revolution
Re: Color Preference - ColorFieldEditor [message #313677 is a reply to message #313616] Thu, 22 March 2007 07:05 Go to previous message
Eclipse UserFriend
Originally posted by: durchgedreht.gmx.de

Thanks a lot. This is exactly what I was looking for!
Dennis

Am 20.03.2007, 18:00 Uhr, schrieb Vikram <vb@prismtech.com>:

> You could get it using the PreferencesConverter class:
>
> IPreferenceStore pf =3D MyPlugin.getDefault().getPreferenceStore();
> RGB color =3D PreferenceConverter.getColor(pf, key);
>
>
>
> How do I get the color from my Preference store?
> Sorry, but I didn't found it in the FAQ and I'm in a hurry...
>
> Code in my FieldEditorPreferencePage:
> addField(new ColorFieldEditor(PrefConstants.COLOR_DIRECT_LINK, "color =
of =

> a
> direct link", getFieldEditorParent()));
>
> Code elsewhere:
> ???? color =3D pref.get????(PrefConstants.COLOR_DIRECT_LINK);
>
> Thanks!
> Dennis
>
>



-- =

Erstellt mit Operas revolution=C3=A4rem E-Mail-Modul: http://www.opera.c=
om/mail/
Previous Topic:Can I read/write a MS offiece document?
Next Topic:Changing multipage editor default page
Goto Forum:
  


Current Time: Wed Apr 30 11:31:57 EDT 2025

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

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

Back to the top