Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to read Preferences from the Editor
How to read Preferences from the Editor [message #446256] Mon, 22 November 2004 18:54 Go to next message
Pascal is currently offline PascalFriend
Messages: 9
Registered: July 2009
Junior Member
I am new at Plugin Development for Eclipse, so pardon me if I am asking
a trivial question.

I am trying to develop an editor plugin. I started with the Preference
Wizard. It created a structure simular to:

editors/editor.java
....
preferences/PreferencePage.java


Both my editor and my preference page are working correctly.

My question is how to read the PreferencePage from the editor class?
I can call getPreferenceStore from my editor class, but my preference
does not seem to be there. Also the preference was created using a
ColorFieldEditor, but IPreferenceStore does not have method to read
Color.

I have read a lot of documentation (which is excellent) but I must have
missed something somewhere :-(

Thanks

--
Pascal
Re: How to read Preferences from the Editor [message #446346 is a reply to message #446256] Tue, 23 November 2004 15:10 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
You should ask this on the eclipse.platform newsgroup.

Grant

"Pascal" <pascal@tisco.RemoveMe.com> wrote in message
news:cntcl8$hhv$1@www.eclipse.org...
> I am new at Plugin Development for Eclipse, so pardon me if I am asking
> a trivial question.
>
> I am trying to develop an editor plugin. I started with the Preference
> Wizard. It created a structure simular to:
>
> editors/editor.java
> ...
> preferences/PreferencePage.java
>
>
> Both my editor and my preference page are working correctly.
>
> My question is how to read the PreferencePage from the editor class?
> I can call getPreferenceStore from my editor class, but my preference
> does not seem to be there. Also the preference was created using a
> ColorFieldEditor, but IPreferenceStore does not have method to read
> Color.
>
> I have read a lot of documentation (which is excellent) but I must have
> missed something somewhere :-(
>
> Thanks
>
> --
> Pascal
Previous Topic:Any documentation about Properties in SWT?
Next Topic:SWTException: no printStackTrace(PrintWriter)
Goto Forum:
  


Current Time: Thu Sep 19 13:53:29 GMT 2024

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

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

Back to the top