Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » get selected RadioGroupFieldEditor
get selected RadioGroupFieldEditor [message #57872] Sun, 01 June 2003 03:35 Go to next message
Eclipse UserFriend
Originally posted by: pdrolet.mac.com

I am trying to get the selected value of this control but I do not
succeed. Here is some of the code:


public class AgencePreferencePage
extends FieldEditorPreferencePage
implements IWorkbenchPreferencePage, IPropertyChangeListener {
....
public static final String P_LICENCE = "licence"; // 1 ou 2
....
RadioGroupFieldEditor licence;
....
public void createFieldEditors() {
....
licence = new RadioGroupFieldEditor(P_LICENCE, "Type de
licence:",1,new String[][] { { "Facturation a l'acte
seulement","moduleActe"},{"Tous les modules de facturation (acte, fixe,
tarif horaire, vacation, RMX","moduleTous"}}, getFieldEditorParent());

addField(licence);

I need to validate the values independently (this is done with each
control isValid when necessary) and also the relation between all
those entered or selected values. So I call a validation routine in the
oktoleave method and I need the values of all the controls. There is no
problem with the StringFieldEditor (with getStringValue()) but not so
with the RadioGroupFieldEditor. Does somebody know how to get the value
of the selected radioGroup?


--
Patrice Drolet
Logiciels INFO-DATA inc.
Re: get selected RadioGroupFieldEditor [message #57970 is a reply to message #57872] Sun, 01 June 2003 12:46 Go to previous message
Eclipse UserFriend
Originally posted by: pdrolet.mac.com

I decided to apply an interim solution...

I get the stored value and put it in a String and change its value in
the propertychangelistener. So I simply follow its state with another
member... Not very elegant, but at least I can get going...


If there is a better solution, then let me know!

Cheers,

Patrice Drolet
Previous Topic:Eclipse survival
Next Topic:InputDialog, SelectionDialog, etc.
Goto Forum:
  


Current Time: Sun Jun 30 12:44:56 GMT 2024

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

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

Back to the top