get selected RadioGroupFieldEditor [message #57872] |
Sun, 01 June 2003 03:35 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05260 seconds