Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » setBooleanValue() missing in BooleanFieldEditor ?
setBooleanValue() missing in BooleanFieldEditor ? [message #289618] Tue, 09 August 2005 05:30 Go to next message
Vincent Etter is currently offline Vincent Etter
Messages: 72
Registered: July 2009
Member
Hello !

I use field editors in my preferences pages and I want to use a
BooleanFieldEditor. How could I set the value of a BooleanFieldEditor ?

As there is a getBooleanValue() method, I was expecting a
setBooleanValue() method. Am I completly wrong or is this feature missing ?

Thanks !

Vincent
Re: setBooleanValue() missing in BooleanFieldEditor ? [message #289724 is a reply to message #289618] Wed, 10 August 2005 05:57 Go to previous messageGo to next message
Andreas Herz is currently offline Andreas Herz
Messages: 196
Registered: July 2009
Senior Member
Hi

I miss this feature too. I use a combobox instead :-|


greetings

Andreas


Vincent Etter wrote:
> Hello !
>
> I use field editors in my preferences pages and I want to use a
> BooleanFieldEditor. How could I set the value of a BooleanFieldEditor ?
>
> As there is a getBooleanValue() method, I was expecting a
> setBooleanValue() method. Am I completly wrong or is this feature missing ?
>
> Thanks !
>
> Vincent
Re: setBooleanValue() missing in BooleanFieldEditor ? [message #289769 is a reply to message #289618] Wed, 10 August 2005 13:02 Go to previous messageGo to next message
Eclipse User
Originally posted by: richkulp.us.NO_SPAM.ibm.com

That's because the BooleanFieldEditor is a FieldEditor, and FieldEditors
expect to work with PreferenceStores. It gets/sets the values through
the preference store, not outside of it.

The name of the preference is set through the BooleanFieldEditor's
constructor and the preference store is set by the
FieldEditorPreferencePage.


--
Thanks,
Rich Kulp
Re: setBooleanValue() missing in BooleanFieldEditor ? [message #289775 is a reply to message #289769] Wed, 10 August 2005 13:25 Go to previous messageGo to next message
Eclipse User
Originally posted by: vlad_dumitrescu.hotmail.com

Then why is there a setString() method in StringFieldEditor?

regards,
Vlad


"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> skrev i meddelandet
news:dddbvt$595$1@news.eclipse.org...
> That's because the BooleanFieldEditor is a FieldEditor, and FieldEditors
> expect to work with PreferenceStores. It gets/sets the values through the
> preference store, not outside of it.
>
> The name of the preference is set through the BooleanFieldEditor's
> constructor and the preference store is set by the
> FieldEditorPreferencePage.
>
>
> --
> Thanks,
> Rich Kulp
Re: setBooleanValue() missing in BooleanFieldEditor ? [message #289781 is a reply to message #289775] Wed, 10 August 2005 14:11 Go to previous message
Eclipse User
Originally posted by: richkulp.us.NO_SPAM.ibm.com

That's apparently a mistake. None of the other field editors allow that.

Vlad wrote:
> Then why is there a setString() method in StringFieldEditor?
>


--
Thanks,
Rich Kulp
Previous Topic:No features found on the selected site(s)
Next Topic:Unable to find feature.xml
Goto Forum:
  


Current Time: Fri Aug 29 04:18:15 EDT 2014

Powered by FUDForum. Page generated in 0.01563 seconds