/*
   * (non-Javadoc)
   *
   * @see
   * org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets
   * .Composite)
   */
  public void createControl(Composite parent) {
    initializeDialogUnits(parent);

    final Composite composite = new Composite(parent, SWT.NULL);
    composite.setFont(parent.getFont());
    composite.setLayout(initGridLayout(new GridLayout(1, false), true));
    composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));

    // create UI elements
    Control nameControl = createNameControl(composite);
    nameControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    Control rooHomeControl = rooInstallGroup.createControl(composite);
    rooHomeControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    if (DependencyManagementUtils.IS_M2ECLIPSE_PRESENT
        || DependencyManagementUtils.IS_STS_MAVEN_PRESENT) {
      Control dependencyManagementControl = dependencyManagementGroup.createControl(composite);
      dependencyManagementControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    }

    Control providerControl = packagingProviderGroup.createControl(composite);
    providerControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    Control locationControl = createLocationControl(composite);
    locationControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    Control workingSetControl = createWorkingSetControl(composite);
    workingSetControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    setControl(composite);
  }