Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » FieldEditors (Enabling and disabling of FieldEditors)
FieldEditors [message #629225] Mon, 27 September 2010 14:07
Rahul Gupta is currently offline Rahul GuptaFriend
Messages: 1
Registered: September 2010
Junior Member
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());
addField(fullDetails);

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());
addField(machineName);

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

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

It would be very helpful if anyone can give some pointers as to how this can be done
Previous Topic:syntax coloring doesn't work in a multline line rule?
Next Topic:[databinding] exceptions in List-typed model property binding to Viewer multi selection
Goto Forum:
  


Current Time: Fri Apr 26 17:14:51 GMT 2024

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

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

Back to the top