Community
Participate
Working Groups
I noticed that for most of FieldEditor included in types which inherit AbstractPreferenceAndPropertyPage, method setEnabled doesn't work correctly, when called (for example) from enablePreferenceContent method Root cause comes from method createFieldEditors() method, which returns composite variable instead of parent, which is set to getFieldEditorParent() createFieldEditors() must return 'parent' instead of 'composite', as written in attached patch
Created attachment 229552 [details] patch proposal This patch applies on sphinx svn trunk
Further investigation show that the previously sent patch is not totally effective. As a matter of fact, with this patch, 'composite' variable is useless, but nevertheless added to parent. This leads in display problem when adding StringFieldEditor. As a conclusion, added to this patch, code linked to 'composite' variable must be removed: protected void createFieldEditors() { Composite parent = getFieldEditorParent(); initializeDialogUnits(parent); GridLayout layout = new GridLayout(); layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN); layout.marginWidth = 0; layout.verticalSpacing = convertVerticalDLUsToPixels(10); layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING); parent.setLayout(layout); parent.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); addFields(parent); }
Closed stale issue before migration