Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 86966

Summary: [Preferences] StringFieldEditor and IntegerFieldEditor are conflict with Group
Product: [Eclipse Project] Platform Reporter: Dave Lin <davelin>
Component: UIAssignee: 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:

Description Dave Lin CLA 2005-03-02 00:44:07 EST
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);
  }
Comment 1 Tod Creasey CLA 2007-04-13 16:05:54 EDT
There are currently no plans to work on this

Please reopen if you have a suggested patch