• Post Reply Bookmark Topic Watch Topic
  • New Topic

Enabling and disabling of FieldEditors  RSS feed

Rahul Gpt
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a doubt related usage FieldEditors in Plugin development. I have a preference page which basically consists of some StringFieldEditors, booleanFieldEditors, RadioGroupFieldEditors etc.

The problem I'm facing is as follows:

I have a booleanFiledEditor called "Full Details". The code for this is as follows:

BooleanFieldEditor fullDetails = new BooleanFieldEditor("fullDetails", "Full Details", org.eclipse.swt.SWT.NONE, getFieldEditorParent());

Once the user checks this boolean field, the StringFieldEditors which follow this booleanFieldEditor should get enabled. Otherwise they should remain disabled. The code for other StringFieldEditors are as follows:

StringFieldEditor machineName = new StringFieldEditor("machineName", "Host name", getFieldEditorParent());

StringFieldEditor ipaddress = new StringFieldEditor("ipaddress", "IP Address", getFieldEditorParent());

StringFieldEditor cpuinfo = new StringFieldEditor("cpuinfo", "CPU Info", getFieldEditorParent());

It would be very helpful if anyone can give some pointers as to how this can be done
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!