/*
   * @see PreferencePage#createContents(Composite)
   */
  protected Control createContents(Composite parent) {
    initializeDialogUnits(parent);
    int nColumns = 1;

    Composite result = new Composite(parent, SWT.NONE);
    result.setFont(parent.getFont());

    GridLayout layout = new GridLayout();
    layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
    layout.marginWidth = 0;
    layout.numColumns = nColumns;
    result.setLayout(layout);

    fShowMethodReturnType.doFillIntoGrid(result, nColumns);
    //		fShowMethodTypeParameters.doFillIntoGrid(result, nColumns);
    fShowCategory.doFillIntoGrid(result, nColumns);
    fShowMembersInPackageView.doFillIntoGrid(result, nColumns);
    fShowColoredLabels.doFillIntoGrid(result, nColumns);
    fFoldPackagesInPackageExplorer.doFillIntoGrid(result, nColumns);

    //		new Separator().doFillIntoGrid(result, nColumns);

    //		fCompressPackageNames.doFillIntoGrid(result, nColumns);
    //		fPackageNamePattern.doFillIntoGrid(result, 2);
    //		LayoutUtil.setHorizontalGrabbing(fPackageNamePattern.getTextControl(null));
    //		LayoutUtil.setWidthHint(fPackageNamePattern.getLabelControl(null),
    // convertWidthInCharsToPixels(65));

    //		new Separator().doFillIntoGrid(result, nColumns);
    //		fStackBrowsingViewsVertically.doFillIntoGrid(result, nColumns);

    //		String noteTitle= PreferencesMessages.AppearancePreferencePage_note;
    //		String noteMessage=
    // PreferencesMessages.AppearancePreferencePage_preferenceOnlyEffectiveForNewPerspectives;
    //		Composite noteControl= createNoteComposite(JFaceResources.getDialogFont(), result,
    // noteTitle, noteMessage);
    //		GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_FILL);
    //		gd.horizontalSpan= 2;
    //		noteControl.setLayoutData(gd);

    initFields();

    Dialog.applyDialogFont(result);
    return result;
  }
  protected Control createContents(Composite parent) {
    setShell(parent.getShell());

    fPixelConverter = new PixelConverter(parent);

    Composite composite = new Composite(parent, SWT.NONE);
    composite.setFont(parent.getFont());

    GridLayout layout = new GridLayout();
    layout.numColumns = 2;
    layout.marginWidth = 0;
    layout.marginHeight = 0;

    composite.setLayout(layout);

    fOrderListField.doFillIntoGrid(composite, 3);
    LayoutUtil.setHorizontalSpan(fOrderListField.getLabelControl(null), 2);
    LayoutUtil.setWidthHint(
        fOrderListField.getLabelControl(null), fPixelConverter.convertWidthInCharsToPixels(60));
    LayoutUtil.setHorizontalGrabbing(fOrderListField.getListControl(null));

    Composite importExportComp = new Composite(composite, SWT.NONE);
    importExportComp.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 2, 1));
    layout = new GridLayout();
    layout.numColumns = 2;
    layout.marginWidth = 0;
    layout.marginHeight = 0;

    importExportComp.setLayout(layout);

    fImportButton.doFillIntoGrid(importExportComp, 1);
    fExportButton.doFillIntoGrid(importExportComp, 1);

    fThresholdField.doFillIntoGrid(composite, 2);
    ((GridData) fThresholdField.getTextControl(null).getLayoutData()).grabExcessHorizontalSpace =
        false;
    fStaticThresholdField.doFillIntoGrid(composite, 2);
    fIgnoreLowerCaseTypesField.doFillIntoGrid(composite, 2);

    Dialog.applyDialogFont(composite);

    return composite;
  }