Color Preference - ColorFieldEditor [message #313608] |
Tue, 20 March 2007 11:45  |
Eclipse User |
|
|
|
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 #313677 is a reply to message #313616] |
Thu, 22 March 2007 07:05  |
Eclipse User |
|
|
|
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/
|
|
|
Powered by
FUDForum. Page generated in 0.07082 seconds