| Summary: | [Preferences] StringFieldEditor and IntegerFieldEditor are conflict with Group | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Dave Lin <davelin> |
| Component: | UI | Assignee: | Duong Nguyen <duongn> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P4 | Keywords: | helpwanted |
| Version: | 3.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
There are currently no plans to work on this Please reopen if you have a suggested patch |
Summary When create a FieldEditorPreferencePage with StringFieldEditor, if we using GRID layout, column=1 and Group to grouping StringFieldEditor, the column will become 2 and second Group/Control will be placed to right side of first component instead of first 1. This problem can be solved by change the GridData of Group to gd.horizontalSpan = 2; But it isn't make sense to do this by user. Sample code: In a FieldEditorPreferencePage, function createFieldEidtors() /** * Creates the field editors */ protected void createFieldEditors() { Group g = new Group(getFieldEditorParent(),SWT.NULL); // Add a string field StringFieldEditor stringFe = new StringFieldEditor("myString", "String:", g); addField(stringFe); Group g2 = new Group(getFieldEditorParent(),SWT.NULL); Group g3 = new Group(getFieldEditorParent(),SWT.NULL); }